开发者

HTML5 Web sockets (TCP Connection), with flash fallback

开发者 https://www.devze.com 2023-01-17 09:17 出处:网络
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

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

精彩评论

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