The tool is a simple WebSocket server. It can be used to test WebSocket listeners of an API Gateway. Check Axway API Gateway documentation to configure WebSocket connections.
This WebSocket server can be used in combination with the simple WebSocket client.
To start the WebSocket server to listen to the URL ws://localhost:8025/echo
use the following command.
The expects a text message and echos the same text message back to the client.
$ java -jar ws-simple-server-0.1.0-jar-with-dependencies.jar
März 29, 2023 12:47:54 PM org.glassfish.grizzly.http.server.NetworkListener start
INFORMATION: Started listener bound to [0.0.0.0:8025]
März 29, 2023 12:47:54 PM org.glassfish.grizzly.http.server.HttpServer start
INFORMATION: [HttpServer] Started.
März 29, 2023 12:47:54 PM org.glassfish.tyrus.server.Server start
INFORMATION: WebSocket Registered apps: URLs all start with ws://localhost:8025
März 29, 2023 12:47:54 PM org.glassfish.tyrus.server.Server start
INFORMATION: WebSocket server started.
INFO 12:47:54.288 - WebSocket server started: localhost:8025
Show help screen
$ java -jar ws-simple-server-0.1.0-jar-with-dependencies.jar -h
Usage: ws-server-simple [options]
Options:
-h, --help
Show help screen.
--host
Hostname of the WebSocket server
Default: localhost
--port
Port of the WebSocket server
Default: 8025
Please read Contributing for details on our code of conduct, and the process for submitting pull requests to us.