Standalone Socket.IO server in Java

2020-05-19 04:33发布

问题:

I am looking for a simple Socket.IO server written in Java.

I am familiar with this one, but it has a dependency on servlets, which I am not using in my application.

I am looking for something similar to this, but supports all of the Socket.IO protocol, not just the WebSocket part.

EDIT: this also means no Jetty, etc.

回答1:

Try this lib:

https://github.com/mrniko/netty-socketio

Based on high performance socket lib Netty.

It supports latest protocol of Socket.IO server.



回答2:

Given that most production-capable Java-based servers are based on the Servlet standard, I don't believe any such implementation exists.