O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.
HOW TO GET YOUR SANITY
BACK WITH SOCKET.IO
YO!
I am Danielius Visockas
I had to build a chat
Realtime was a problem
At least for me
Because I’m a ruby developer.
Problem?
✘ Polling
✘ Long polling
✘ Very long polling
✘ Web Sockets
✘ SSE
✘ Just use some service
No
socket.io
with node.js to the rescue
Socket.io abstracts realtime like
jQuery does for Ajax
Supported transports
✘ Web Socket
✘ Adobe Flash Sockets
✘ Long polling
✘ Multipart streaming
✘ JSONP Polling
✘ Forever ifr...
Supported browsers
✘ IE 5.5+
✘ Safari 3+
✘ Chrome 4+
✘ Firefox 3+
✘ Opera 10+
✘ iSafari
✘ Android WebKit
✘ WebOs Webkit
It has friends
redis
Ruby server node &
socket.io
PGsql
Redis PostgreSQL
Client code
Caveats
✘ Security
✘ Adds complexity
Thank you
Any questions?
You can find me at
@dvisockas
For more info visit http://socket.io
Próximos SlideShares
Carregando em…5
×

How to get your sanity back with socket.io

A talk for Vilnius Javascript user group

  • Seja o primeiro a comentar

  • Seja a primeira pessoa a gostar disto

How to get your sanity back with socket.io

  1. 1. HOW TO GET YOUR SANITY BACK WITH SOCKET.IO
  2. 2. YO! I am Danielius Visockas
  3. 3. I had to build a chat
  4. 4. Realtime was a problem At least for me
  5. 5. Because I’m a ruby developer.
  6. 6. Problem? ✘ Polling ✘ Long polling ✘ Very long polling ✘ Web Sockets ✘ SSE ✘ Just use some service
  7. 7. No
  8. 8. socket.io with node.js to the rescue
  9. 9. Socket.io abstracts realtime like jQuery does for Ajax
  10. 10. Supported transports ✘ Web Socket ✘ Adobe Flash Sockets ✘ Long polling ✘ Multipart streaming ✘ JSONP Polling ✘ Forever iframe
  11. 11. Supported browsers ✘ IE 5.5+ ✘ Safari 3+ ✘ Chrome 4+ ✘ Firefox 3+ ✘ Opera 10+ ✘ iSafari ✘ Android WebKit ✘ WebOs Webkit
  12. 12. It has friends
  13. 13. redis Ruby server node & socket.io PGsql
  14. 14. Redis PostgreSQL
  15. 15. Client code
  16. 16. Caveats ✘ Security ✘ Adds complexity
  17. 17. Thank you Any questions? You can find me at @dvisockas For more info visit http://socket.io

×