Java 中的独立 Socket.IO 服务器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5972267/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Standalone Socket.IO server in Java
提问by Alec Gorge
I am looking for a simple Socket.IO server written in Java.
我正在寻找一个用 Java 编写的简单 Socket.IO 服务器。
I am familiar with this one, but it has a dependency on servlets, which I am not using in my application.
我对这个很熟悉,但它依赖于 servlet,我没有在我的应用程序中使用它。
I am looking for something similar to this, but supports all of the Socket.IO protocol, not just the WebSocket part.
我正在寻找与此类似的东西,但支持所有 Socket.IO 协议,而不仅仅是 WebSocket 部分。
EDIT: this also means no Jetty, etc.
编辑:这也意味着没有码头等。
回答by Nikita Koksharov
Try this lib:
试试这个库:
https://github.com/mrniko/netty-socketio
https://github.com/mrniko/netty-socketio
Based on high performance socket lib Netty.
基于高性能套接字库 Netty。
It supports latest protocol of Socket.IO server.
它支持Socket.IO服务器的最新协议。
回答by Femi
Given that most production-capable Java-based servers are based on the Servlet standard, I don't believe any such implementation exists.
鉴于大多数具有生产能力的基于 Java 的服务器都是基于 Servlet 标准的,我认为不存在任何此类实现。