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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
There are several java libraries that provide java's connectivity with socket.io client.
- ibdknox/socket.io-netty
- benkay/java-socket.io.client
- Ovea/Socket.IO-Java
- Gottox/socket.io-java-client
- mrniko/netty-socketio