Are there any examples(ready scripts) to connect to java server with socket.io library? My problem: I have a server that works on java (proceed some data from clients) and a java client that is always connected to server (server is to be informed when a client is disconnected). I want to create a javascript extension for google chrome that replace this java client. But now server and client communicate now with simple text protocol.
Asked
Active
Viewed 1.1k times
10
-
1Welcome to Stack Overflow. Please read [How to Ask](http://stackoverflow.com/questions/how-to-ask), [What have you tried?](http://mattgemmell.com/2008/12/08/what-have-you-tried/), and [How To Ask Questions The Smart Way](http://catb.org/esr/faqs/smart-questions.html). – Mar 01 '12 at 10:49
1 Answers
16
There are several java libraries that provide java's connectivity with socket.io client.
Servers
- ibdknox/socket.io-netty (NOTE: not updated since 2011, not compatible with socket.io v0.7 or above)
- avostryakov/Socket.IO-Java (a fork of Ovea/Socket.IO-Java which is no longer available)
- mrniko/netty-socketio
- Atmosphere/atmosphere (see Getting-Started-with-Socket.IO)
- trinopoty/socket.io-server-java (based on the official engine.io Java server but modified for normal socket.io)
The trinopoty and mrniko servers are both mentioned on the official docs for socket.io under "other server implementations".
Clients
- Official Java client
- benkay/java-socket.io.client (NOTE: no longer maintained)
- Gottox/socket.io-java-client (NOTE: repository has now been archived)

Adam Burley
- 5,551
- 4
- 51
- 72

Ali Raza
- 1,215
- 3
- 15
- 26
-
2
-
2ibdknox/socket.io-netty is outdated: "This project is currently low on my priorities list and likely won't see a lot of attention in the near future. It works with socket.io 0.6, but since socket.io 0.7 was essentially a rewrite, it will require a fair amount of work to continue moving it forward" – Erel Segal-Halevi Dec 30 '12 at 12:31
-
It's been updated now -- works with 1.0 (according to its README). – Walrus the Cat Jul 22 '14 at 03:09
-
@WalrustheCat I don't think so... it is still the same, and hasn't been updated since 2011. probably you are confusing it with the similarly-named "netty-socketio" which ***does*** support v1.0. – Adam Burley Jul 23 '21 at 07:43