Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

My adventure with WebSockets


Published on

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

Published in: Technology
  • Be the first to comment

  • Be the first to like this

My adventure with WebSockets

  1. 1. My Adventure with WebSockets
  2. 2. Michiel De Mey Twitter: @michieldemey Website:
  3. 3. So, what are websockets?
  4. 4. “WebSocket is a web technology providing fullduplex communications channels over a single TCP connection. ”
  5. 5. 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
  6. 6. Why should you bother?
  7. 7. Two-way communication (full duplex) Real-time data No firewall getting in your way
  8. 8. The downsides Your network has to be compatible with websockets. Load balancers HTTP Proxies ...
  9. 9. The lifecycle
  10. 10. My final project on websockets The stack and stuff
  11. 11. High performant HTTP and reverse proxy server. Running on Port 80 Proxying websockets on port 80 to port 8080 NOTE: Websocket proxying requires Nginx 1.3.13 (Development version)
  12. 12. Module for Nginx to deploy Ruby on Rails apps.
  13. 13. Platform running on Google's V8 JavaScript engine. Used to build fast and scalable network applications.
  14. 14. 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
  15. 15. CoffeeScript is a little language that compiles into JavaScript. Both the websocket server and the client are written in CoffeeScript.
  16. 16. Demo
  17. 17. Thank you Twitter: @michieldemey Artwork by Jorge Jacinto