Java server and socket.io

2019-02-09 02:06发布

问题:

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.

  1. ibdknox/socket.io-netty
  2. benkay/java-socket.io.client
  3. Ovea/Socket.IO-Java
  4. Gottox/socket.io-java-client
  5. mrniko/netty-socketio