Your SlideShare is downloading. ×
My adventure with WebSockets
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

My adventure with WebSockets

244
views

Published on

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

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
244
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

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

×