Node.js & socket.io
-
Upload
alon-nativ -
Category
Technology
-
view
37 -
download
0
description
Transcript of Node.js & socket.io
Node.JS, Socket.IOand the
Real-Time WebAlon Nativ
Alon Nativ
@anativ [email protected]
Why are we here?
Why Sockets?
History
Web history
dfasdsfasdfasd
Real Time Apps
dfasdsfasdfasd
AJAX Apps
dfasdsfasdfasd
Static Docs
dfasdsfasdfasd
Dynamic Docs
HTTP
Client (browser)
Request
Response
Don't call me I'll call you!
But I have something to say
Server
Ajax Polling
Client (browser)
Anything?
No!
Anything?
No!
Anything?
Yes!
Long Polling
Client (browser)
Anything?
Yes
Server
Anything?
Sockets
Client (browser) Server
let's Talk
Sockets and the Web
WebSocket
Flash Socket
AJAX Long Polling
AJAX Multipart streaming
Forever Iframe
JSONP Polling
How can we handle all the formats?
Server?
We need a server
Let the coding begin... Client
Server
Demo...
http://bit.ly/techmeetup1 http://socket-io-canvas.herokuapp.com/
Node.js - http://nodejs.org/Socket.IO - http://socket.io/Demo Site - http://bit.ly/techmeetup1Demo Code - https://github.com/anativ/collaborative-canvas
Read more...
@anativ
Thanks
@anativ