Skip to content

Latest commit

 

History

History

ws

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

ws

About This Project

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>

Building This Project

Minimum Requirements for Building the Projects in This Repo

  • Java SE Development Kit (JDK) 7 or higher
  • maven 3.0.5 or higher

Steps for Building this Project

  1. Clone the repo: git clone https://github.com/kaazing/java.client.git
  2. Go to the cloned directory: cd java.client
  3. Build the project: mvn clean install

Running the WebSocket demo

From the command-line

  1. Change directory: cd ws/demo/target
  2. Run the demo application: java -cp . -jar gateway.client.java.demo-develop-SNAPSHOT.jar

From within Eclipse

  1. Import the project in Eclipse
  2. Under gateway.client.java.demo project, right-click on WebSocketFrame.java or WebSocketApplet.java in src/main/java/org.kaazing.net.ws.demo and run!

Using KAAZING Gateway or any RFC-6455 Endpoint

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.

Learning How to Develop Client Applications

To learn how to develop client applications with this project, see the documentation on developer.kaazing.com.

View a Running Demo

To view demos of clients built with this project, see kaazing.org