HTML5网络套接字(TCP连接),闪回回退 [英] HTML5 Web sockets (TCP Connection), with flash fallback

查看:221
本文介绍了HTML5网络套接字(TCP连接),闪回回退的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读了一个项目,使开发人员能够自动使用flash方法来编写与旧浏览器兼容的HTML5 web套接字应用程序。



任何人都可以得到这个,因为我现在无法找到细节我有兴趣开始发展?

谢谢!

解决方案

我写了一个

总结:

包括 web_socket.js 和页面上的flash(swf)对象,并开始行动。如果WebSocket不受支持, web_socket.js 对象包含必要的FlashSocket回退代码。



想要在实际的应用程序中使用这个,你将不得不在服务器上的端口843的Flash政策文件。我也去了。

I read about a project that enables the developer to program a HTML5 web sockets 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.

这篇关于HTML5网络套接字(TCP连接),闪回回退的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆