THINK. CODE. COLLABORATE.
spiria.com
Websockets Bring Light at the End of the Tunnel
JOEL LORD
Presented by Node PDX – June 20th, 2016
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
THINK. CODE. COLLABORATE.
spiria.com
Websockets Bring Light at the End of the Tunnel
JOEL LORD
Presented by Node PDX – June 20th, 2016
@joel__lord #nodepdx
WEB SOCKETS
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 WebSocketAPI in Web IDL is being standardized by the W3C.
@joel__lord #nodepdx
NORMAL HTTP REQUESTS
@joel__lord #nodepdx
Client Server Time
POLLING
@joel__lord #nodepdx
Client Server Time
LONG-POLLING
@joel__lord #nodepdx
Client Server Time
WEBSOCKETS
@joel__lord #nodepdx
Client Server Time
WHAT ABOUT SERVER-SIDE EVENTS?
@joel__lord #nodepdx
Client Server Time
Bi-directional data transfers Fast Low bandwith Detects connection and disconnection
PROS
@joel__lord #nodepdx
Lose the caching capabilities built in XHR and HTTP Architectural changes in the application
CONS
@joel__lord #nodepdx
REAL WORLD CASES
@joel__lord #nodepdx
ESTABLISHING A CONNECTION
@joel__lord #nodepdx
EVENTS
@joel__lord #nodepdx
SENDING DATA TO THE SERVER
@joel__lord #nodepdx
VARIOUS IMPLEMENTATIONS
@joel__lord #nodepdx
WHAT’S SO COOL ABOUT IT?
@joel__lord #nodepdx
provided in WebSocket API
CLIENT SIDE
@joel__lord #nodepdx
SERVER SIDE
@joel__lord #nodepdx
LET’S GET SERIOUS
THINK. CODE. COLLABORATE.
spiria.com
JOEL LORD
Node PDX – June 20th, 2016 Presented by
@joel__lord #nodepdx /joellord