Java server and socket.io

孤街浪徒 提交于 2019-11-29 18:15:15

问题


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


来源:https://stackoverflow.com/questions/9514767/java-server-and-socket-io

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!