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.
Java server and socket.io
Asked Answered
Welcome to Stack Overflow. Please read How to Ask, What have you tried?, and How To Ask Questions The Smart Way. –
Gertudegerty
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)
Thank you. It's realy helpfull. –
Flatware
ibdknox/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" –
Sixpenny
It's been updated now -- works with 1.0 (according to its README). –
Frantz
@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. –
Escapement
© 2022 - 2024 — McMap. All rights reserved.