views:

156

answers:

2

Why won't Apple support websockets on IOS Safari?

This is really annoying for me...

I'm now looking at having to implement a Comet/Bayeaux fallback for browsers that don't support HTML WebSockets ;(

+1  A: 

Ok, after much researching this afternoon, I'm now using Socket.IO-node on the server and Socket.IO on the client.

If HTML5 websockets are available, it uses WebSocket protocol. Then it falls back to Flash, eventually falling back to whatever's appropriate from: AJAX long polling, AJAX multipart streaming, forever iframe, JSONP Polling.

Project here:

www.socket.io

Guillermo Rauch take a bow. You are a legend.

Would have preferred to write the server-side in Java, but I guess Node.js will have to do. I'd love a bit of auto-complete for the Node javascript... ;( I guess it's hard to keep everyone happy all of the time!

I now have server push in Safari 4.x on iOS ;)

Transition to fall-back protocols is seamless.

Eamorr
+1  A: 

I'm running an iPad with iOS 4.2 beta 3, and web sockets are indeed supported.

nlaq