Mozilla is supporting a new version of websockets (https://bugzilla.mozilla.org/show_bug.cgi?id=640003) that as of a week ago did not work with a lot of popular libraries yet (socket.io). Its awesome to see better security features in place and I hope that library distributors are fast to follow up with changes in their library.
Re:Firefox 6 for web developers
by JoshTriplett on Tuesday August 16, 2011 @12:28PM
(#2891784)
Server-sent events seem awesome as well. Open a connection to the server, let it stream you events, and each one generates a Javascript event.
Re:Firefox 6 for web developers
by PedroCandeias on Tuesday August 16, 2011 @12:52PM
(#2891890)
It's hard to believe it's 2011 and there's still no standard way of sending data from a server to a browser other than ajax and comet trickery.
This sounds like a step in the right direction.
Also seems like server-sent events should be a lot easier to pass through standard load balancers and proxies than web sockets. Very cool...
Re:Firefox 6 for web developers
by robin_reala on Tuesday August 16, 2011 @12:44PM
(#2891853)
For what it’s worth, you have to update your client code to instantiate a MozWebSocket and update your server to support the latest protocol. I know, because I’ve done this today :) We’re using the em-websocket gem though which has been updated recently so it really wasn’t that difficult.
I have a feeling that's going to make a lot of people very happy. Good to see that they were able to solve the security issues.