Upgrade to Pro — share decks privately, control downloads, hide ads and more …

My Adventure with WebSockets

My Adventure with WebSockets

A general presentation about WebSockets and why you should use them.

Avatar for Michiel De Mey

Michiel De Mey

April 05, 2013

Other Decks in Programming

Transcript

  1. A few things you should know You're sending messages UTF-8

    text or binary data Messages from client to server are “obfuscated” WebSockets automatically signal when the connection is about to be terminated Built-in heartbeating support Not all browsers currently support the transfer of binary data
  2. High performant HTTP and reverse proxy server. Running on Port

    80 Proxying websockets on port 80 to port 8080 NOTE: requires Nginx 1.3.13 (Development version) Websocket proxying
  3. Node.js package that makes real-time apps possible in every browser

    and device. Server running on port 8080 Falls back to different transport mechanisms Server kept running using forever
  4. CoffeeScript is a little language that compiles into JavaScript. Both

    the websocket server and the client are written in CoffeeScript.