6

Is there a Java-applet implementation of HTML5 WebSockets?

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).

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).

Thanks,

Chris.

3 Answers 3

3

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.

1
  • Looks useful - I will test. I'm concerned about the proxy CONNECT issue, but this may not be an issue. So long as the websocket server runs on a different port number and the user's firewall allows outgoing connections to that port, this may be a non-issue.
    – fadedbee
    Commented Dec 21, 2009 at 16:01
2

Yes there is one, please have look at http://www.jwebsocket.org. Your jWebSocket Team.

2
  • Thanks, that look like just what I need. Deploying a web app using jwebsocket and web-socket-js should cover 95%+ of non-chrome browsers.
    – fadedbee
    Commented Feb 3, 2010 at 14:08
  • It doesn't look like a Java-applet implementation of WebSockets. At least from your description, and your demo, which rejects Firefox 3.6 as non compatible: so I suppose client side is currently only in JS on compatible browsers.
    – PhiLho
    Commented Feb 28, 2010 at 13:45
-1

Speaking as a representative of Kaazing:

We have another solution that provides support for Java, Flash, Silverlight, and JS, and backward compatibility with all pre-Websocket browsers. Documentation is located here.

3
  • Thanks for this info, but I'd already disregarded it due to their licence: kaazing.com/license
    – fadedbee
    Commented Jan 7, 2010 at 15:25
  • 2
    5. PROHIBITED USES. Developer may not: (a) remove or modify any software markings or any notice of Kaazing's proprietary rights; (b) redistribute or make the programs available in any manner to any third party; Emphasis is mine.
    – fadedbee
    Commented Jan 7, 2010 at 17:03
  • The Kaazing WebSocket Gateway has been available as an open source project under the Apache 2.0 license since 2014. Commented Jun 22, 2016 at 22:17

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.