Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Standalone Socket.IO server in Java

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.

like image 739
Alec Gorge Avatar asked May 12 '11 01:05

Alec Gorge


People also ask

Can I use Socket.IO with Java?

IO-client Java. This is the Socket.IO Client Library for Java, which is simply ported from the JavaScript client.

Does Socket.IO need a server?

Socket.io, and WebSockets in general, require an http server for the initial upgrade handshake. So even if you don't supply Socket.io with an http server it will create one for you.

What is Socket.IO server?

Socket.IO is a library that enables low-latency, bidirectional and event-based communication between a client and a server. It is built on top of the WebSocket protocol and provides additional guarantees like fallback to HTTP long-polling or automatic reconnection.

Can I use Socket.IO without node js?

Is it possible to use socket.io without any node. js dependencies? The short answer is yes. You will however have Flash dependency.


1 Answers

Try this lib:

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

Based on high performance socket lib Netty.

It supports latest protocol of Socket.IO server.

like image 83
Nikita Koksharov Avatar answered Oct 04 '22 02:10

Nikita Koksharov