Skip to content

Axway-API-Management-Plus/ws-server-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple WebSocket Server

ws server simple?style=plastic ws server simple?style=plastic

About the Tool

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.

Usage

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

Contributing

Please read Contributing for details on our code of conduct, and the process for submitting pull requests to us.

Team

Axway Logo Axway Team

Releases

No releases published

Packages

No packages published

Languages