开发者

HTML5 Web sockets (TCP Connection), with flash fallback

I read about a project that enables the developer to program a HTML5 web soc开发者_JAVA技巧kets application that is compatible with older browsers by automatically falling back to using a flash method.

Can anyone source this, as I can't find details now I'm interested in starting development?

Thanks!


I've written a decent tutorial on this.

To summarize:

Include the web_socket.js and flash (swf) object on the page and get going. The web_socket.js object contains the necessary code to fallback on the FlashSocket if WebSockets are not supported.

If you want to use this in an actual application, you will have to server Flash Policy Files on port 843. I go over that too.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜