This is the Socket.IO Server Library for Java ported from the JavaScript server.
NOTE This library will follow the major version of the JS library starting with version 3.
See also: Socket.IO-client Java
This library supports all of the features the JS server does, including events, options and upgrading transport.
Complete documentation can be found here.
The latest artifact is available on Maven Central.
Add the following dependency to your pom.xml
.
<dependencies>
<dependency>
<groupId>io.socket</groupId>
<artifactId>socket.io-server</artifactId>
<version>4.0.1</version>
</dependency>
</dependencies>
Add it as a gradle dependency in build.gradle
.
compile ('io.socket:socket.io-server:4.0.1')
A basic demo project running on a Jetty server can be found at https://github.com/oddmario/socket.io-server-java-demo
Apache 2.0