websockets bring light at the end of the tunnel
play

Websockets Bring Light at the End of the Tunnel Presented by JOEL - PowerPoint PPT Presentation

Websockets Bring Light at the End of the Tunnel Presented by JOEL LORD THINK. CODE. COLLABORATE. Node PDX June 20 th , 2016 spiria.com Aboot me, eh? JOEL LORD - Javascript junkie - Tinkerer - Technology enthusiast @joel__lord


  1. Websockets Bring Light at the End of the Tunnel Presented by JOEL LORD THINK. CODE. COLLABORATE. Node PDX – June 20 th , 2016 spiria.com

  2. Aboot me, eh? JOEL LORD - Javascript junkie - Tinkerer - Technology enthusiast @joel__lord #nodepdx

  3. WEB SOCKETS What are they?

  4. WebSocket is a protocol providing full-duplex communications channels over a single TCP connection. The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011, and the WebSocket API in Web IDL is being standardized by the W3C. @joel__lord #nodepdx

  5. Typical real-time NORMAL HTTP REQUESTS Client Server Time @joel__lord #nodepdx

  6. Typical real-time POLLING Client Server Time @joel__lord #nodepdx

  7. Typical real-time LONG-POLLING Client Server Time @joel__lord #nodepdx

  8. Typical real-time WEBSOCKETS Client Server Time @joel__lord #nodepdx

  9. Typical real-time WHAT ABOUT SERVER-SIDE EVENTS? Client Server Time @joel__lord #nodepdx

  10. Pros and cons.

  11. 01 Bi-directional data transfers PROS Fast Low bandwith Detects connection and disconnection @joel__lord #nodepdx

  12. 02 Lose the caching capabilities built in XHR and HTTP CONS Architectural changes in the application @joel__lord #nodepdx

  13. WebSockets in the Wild REAL WORLD CASES - Real time synchronization of data amongst a group of users (trello.com) - Live feeds (Twitter stream) - Long server processes and providing ETAs to users - Multiplayer HTML5 games - Chat clients (Slack) @joel__lord #nodepdx

  14. Using WebSockets with HTML5 ESTABLISHING A CONNECTION @joel__lord #nodepdx

  15. Using WebSockets with HTML5 EVENTS @joel__lord #nodepdx

  16. Using WebSockets with HTML5 SENDING DATA TO THE SERVER @joel__lord #nodepdx

  17. Getting started VARIOUS IMPLEMENTATIONS - PubNub (cloud) - Ratchet (php) - Jetty (Java) - socket.io (node.js) @joel__lord #nodepdx

  18. Here comes Socket.io! WHAT’S SO COOL ABOUT IT? - Server and client-side implementation - Falls back to long polling when necessary (IE 9 ฀) - Adds features like heartbeats, timeouts, and disconnection support not provided in WebSocket API - Easy stuff ! @joel__lord #nodepdx

  19. Here comes Socket.io! CLIENT SIDE @joel__lord #nodepdx

  20. Here comes Socket.io! SERVER SIDE @joel__lord #nodepdx

  21. LET’S GET SERIOUS Coding time!

  22. The end! THINK. Presented by @joel__lord #nodepdx CODE. JOEL LORD COLLABORATE. /joellord Node PDX – June 20 th , 2016 spiria.com

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend