Node.js & socket.io

Post on 04-Nov-2014

39 views 0 download

Tags:

description

In this slides we cover a bit about the history of the web, why we should use socket.io and a demo about node.js

Transcript of Node.js & socket.io

Node.JS, Socket.IOand the

Real-Time WebAlon Nativ

Alon Nativ

@anativ alon@conduit.com

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