有HTML5 WebSockets的一个Java小程序的实现? [英] Is there a Java-applet implementation of HTML5 WebSockets?
问题描述
有HTML5 WebSockets的?
Is there a Java-applet implementation of HTML5 WebSockets?
我想使用WebSockets一个新项目,并提供向后兼容实现的WebSockets的(当前所有非开发浏览器)使用Java(或者闪存)。
I'd like to use WebSockets for a new project, and provide a backward compatible implementation of WebSockets (for all current non-dev browsers) using Java (or maybe Flash).
我只是想编写和维护的服务器端的WebSockets。我只希望有处理在客户端的的WebSockets API(虽然由Java小程序这个API将被'假',如果真正的WebSockets不可用)。
I only want to write and maintain WebSockets on the server-side. I only want to have to deal with the WebSockets API on the client side (though this API will be 'faked' by a Java-applet, if real WebSockets aren't available).
谢谢,
克里斯。
推荐答案
下面是一个可能实现(使用Flash作为后备):
Here's one possible implementation (uses Flash as a fallback):
http://github.com/gimite/web-socket-js
没有担保(我是从我的开发环境,现在距离),但它看起来像它会做你要找的内容。
No guarantees (I'm away from my development environment right now), but it looks like it'll do what you're looking for.
这篇关于有HTML5 WebSockets的一个Java小程序的实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!