This repository contains a barebones WebSocket server and client implementation
written in 100% Java. The underlying classes are implemented java.nio, which allows for a
non-blocking event-driven model (similar to the
WebSocket API for web browsers).
Implemented WebSocket protocol versions are:
Here some more details about protocol versions/drafts.
You can build using Ant, Maven, Gradle or Leiningen but there is nothing against just putting the source path src/main/java on your applications buildpath.
ant will create the javadoc of this library at doc/ and build the library itself: dist/java_websocket.jar
The ant targets are: compile, jar, doc and clean
To use maven add this dependency to your pom.xml:
<dependency>
<groupId>org.java-websocket</groupId>
<artifactId>Java-WebSocket</artifactId>
<version>1.3.7</version>
</dependency>