Bitcoin Forum

Economy => Marketplace => Topic started by: MagicalTux on July 11, 2011, 10:39:16 PM



Title: Technical: Mt.Gox uses websocket natively for realtime order book/ticker/etc?
Post by: MagicalTux on July 11, 2011, 10:39:16 PM
While working on the new Mt.Gox, we've been considering implementing websockets natively for everyone (with a fallback on long polling if not available).

Around 44% of our visitors in the past 30 days have native support for websocket (Chrome, Safari), and another 45% can enable it in their browser quite easily (Firefox+Opera). The remaining major part is MSIE, which should have support in near/less near future[1] (http://blogs.msdn.com/b/interoperability/archive/2011/03/11/latest-websockets-release-interoperates-with-eclipse-s-jetty.aspx).

https://i.imgur.com/UI6Hc.png

Since people in here have more of a technical background, let us know what you think (just spare me the usual "websocket is bad, use direct sockets" - we need something that works in web browsers... and check the new websocket framing in -06 and better first, it's no longer some weird \xff).


Title: Re: Technical: Mt.Gox uses websocket natively for realtime order book/ticker/etc?
Post by: nimnul on July 15, 2011, 04:26:10 PM
Websocket is good, and fallback to flashsocket in IE and browsers with websockets disabled would be very nice. You should look for something like http://socket.io/ to perform transparent fallback for you.