开发者

Apple IOS & Lack of HTML5 WebSockets Support

开发者 https://www.devze.com 2023-01-18 06:10 出处:网络
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 开发者_如何学Cthat don\'t support H

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 开发者_如何学Cthat don't support HTML WebSockets ;(


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消