This tutorial shows how J2SE console application can communicate over the web with an echo service running within Kaazing WebSocket Gateway using Kaazing Java WebSocket Client library. The application sends text messages to the echo service over WebSocket.
The echo service, running inside the Kaazing WebSocket Gateway, reflects back the message that is received by the J2SE application.
- Java 1.8
- Gradle 2.10 or higher
- Build the application using gradle
cd <application root directory>
gradle installDist- Run the application
build/install/java-ws-demo/bin/java-ws-demoor
build\install\java-ws-demo\bin\java-ws-demo.bat
API Documentation for Kaazing Java WebSocket Client library is available: