News for hackers. Stuff that matters.
Re:An Introduction to Web Sockets by pornel on Sunday July 17, 2011 @08:20AM (#2773159)
For non-games usually Server-Sent Events (http://dev.w3.org/html5/eventsource/) may be simpler to use:

• it's pure HTTP, message format is dead simple ("data: payload\n\n")

• browser handles network failures and reconnections automatically.

• browsers can share same stream URL between windows

His use-cases with to-do app and analytics were good fits for SSE.

Re:An Introduction to Web Sockets by camwest on Sunday July 17, 2011 @04:28PM (#2774114)
Once Firefox supports SSE I agree that it would be easier to implement in many use cases. Although it doesn't have the same sort of fallback mechanisms available to it that WebSockets have (ActionScript sockets).

Here is some additional information about it that I found at stackoverflow: http://stackoverflow.com/questions/5195452/websockets-vs-ser...

Re:An Introduction to Web Sockets by pornel on Monday July 18, 2011 @05:32AM (#2775651)
You can fall back to XHR with long polling — the stream is trivial to parse.
Re:An Introduction to Web Sockets by zeroxsys on Sunday July 17, 2011 @12:18PM (#2773548)
I'll check that out, thanks!
Re:An Introduction to Web Sockets by sixtofour on Saturday July 16, 2011 @06:31PM (#2771969)
Re:An Introduction to Web Sockets by neoveller on Saturday July 16, 2011 @07:55PM (#2772140)
Is anyone else kind of baffled by the comment about the political risks of web sockets? Why do people waste time with answers like that?
Re:An Introduction to Web Sockets by camwest on Sunday July 17, 2011 @04:23PM (#2774104)
Hi Neoveller,

I gave the talk and I agree the political risks comment was misplaced. I didn't think it was worth it to shut the person down though as it's my personal philosophy never to embarrass anyone if possible.

I hope you found the others parts of the talk more useful.

Re:An Introduction to Web Sockets by MostAwesomeDude on Saturday July 16, 2011 @08:03PM (#2772147)
I can't watch the slides, but I wonder if they spend any time discussing how WebSockets don't offer any client security beyond raw TCP sockets.
Re:An Introduction to Web Sockets by palish on Saturday July 16, 2011 @08:25PM (#2772168)
Why would WebSockets offer any client security beyond raw TCP sockets?
Re:An Introduction to Web Sockets by MostAwesomeDude on Sunday July 17, 2011 @01:50AM (#2772669)
It was one of the original promises of WS and the reason that browsers offer it to client-side JS.
Re:An Introduction to Web Sockets by camwest on Sunday July 17, 2011 @04:25PM (#2774108)
There are some people building on top of WebSockets with an eye towards security. Check out http://pusher.com/ for example, they designed system to account for 100% untrusted client.
Re:An Introduction to Web Sockets by zeroxsys on Sunday July 17, 2011 @12:18PM (#2773546)
I agree, security in Web Socket must be robust/comprehensive in both ends. This post says so too: http://blog.kotowicz.net/2011/03/html5-websockets-security-n.... Thanks!