The ws
project implements the WebSocket standard in Java. It provides a WebSocket client API that enables developers to build Java applications that communicate over WebSocket with an RFC-6455 endpoint, such as KAAZING Gateway.
Developers can include the Java WebSocket Client using the following maven dependency to develop and run web applications:
<dependency>
<groupId>org.kaazing</groupId>
<artifactId>gateway.client.java</artifactId>
<version>[5.1.0.0,5.2.0.0)</version>
</dependency>
- Java SE Development Kit (JDK) 7 or higher
- maven 3.0.5 or higher
- Clone the repo:
git clone https://github.com/kaazing/java.client.git
- Go to the cloned directory:
cd java.client
- Build the project:
mvn clean install
- Change directory:
cd ws/demo/target
- Run the demo application:
java -cp . -jar gateway.client.java.demo-develop-SNAPSHOT.jar
- Import the project in Eclipse
- Under
gateway.client.java.demo
project, right-click onWebSocketFrame.java
orWebSocketApplet.java
in src/main/java/org.kaazing.net.ws.demo and run!
You can use an RFC-6455 endpoint, such as KAAZING Gateway, to connect to a back-end service. To learn how to administer the Gateway, its configuration files, and security, see the documentation on developer.kaazing.com.
To learn how to develop client applications with this project, see the documentation on developer.kaazing.com.
To view demos of clients built with this project, see kaazing.org