My adventure with WebSockets

358
-1

Published on

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

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
358
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
17
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

My adventure with WebSockets

  1. 1. My Adventure with WebSockets
  2. 2. Michiel De Mey Twitter: @michieldemey Website: michieldemey.be
  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 http://blinck.deviantart.com/

×