STOMP Client Command Line Application for Windows, OSX and Linux

STOMP Client Commands

STOMP Protocol

STOMP provides an interoperable wire format so that STOMP clients can communicate with any STOMP message broker to provide easy and widespread messaging interoperability among many languages, platforms and brokers.

STOMP is simple

Simple (or Streaming) Text Oriented Message Protocol (STOMP), is a simple text-based protocol

Message-oriented Middleware

Designed for working with message-oriented middleware (MOM)

Interoperable wire format

It provides an interoperable wire format that allows STOMP clients to talk with any message broker supporting the protocol.

STOMP Client Win32

sgcSTOMPClient Win32
STOMPClient Client Win32

STOMP Client Win64

sgcSTOMPClient Win64
STOMPClient Client Win64

STOMP Client OSX64

sgcSTOMPClient OSX64
STOMPClient Client OSX64

STOMP Client OSXARM64

sgcSTOMPClient OSXARM64
STOMPClient Client OSXARM64

STOMP Client Linux64

sgcSTOMPClient Linux64
STOMPClient Client Linux64

How Open a new STOMP connection

Example: open a websocket mqtt connection to test.mosquitto.org

{"message":"open", "params":{"url": "ws://www.esegece.com:15674/ws"}}

How Subscribe / Send

Example: subscribe to topic "myTopic"

{"message":"subscribe", "protocol":"stomp", "params":{"id": "12345", "destination": "/topic/myTopic"}}

Example: send message

{"message":"send", "protocol":"stomp", "params":{"destination": "/topic/sgc", "text":"My First Message"}}

Example: unsubscribe from topic "myTopic"

{"message":"unsubscribe", "protocol":"stomp", "params":{"id": "12345"}}

 

How Enable MQTT Options

Example: enable authentication

{"message":"authentication", "protocol":"stomp", "params":{"enabled":true, "username":"user", "password":"secret"}}

Example: Enable heartbeat every 30 seconds.

{"message":"heartbeat", "protocol":"stomp", "params":{"enabled": true, "incoming": 30, "outgoing": 30}}

Example: Disable heartbeat

{"message": "heartbeat", "params":{"enabled": false}}

Close Connection

Example: close connection

{"message":"disconnect", "protocol":"stomp"}

 

TCP Server

All console applications can run an internal TCP Server that allows to send and receive commands as if were written directly on the console application.

Just start the application with the command -server and a new server will be started listening on port 8080. Example: if you want enable the server on WebSocket client, start the console application as follows:

sgcWebSocketClient.exe -server

Find below the full TCP Server parameters:

-server: starts the internal server on port 8080

-server.port: sets the listening port

-server.ip: sets the binding ip (useful if there are multiple ips).

If the server is enabled, a client connected to this server can send any JSON message and will receive any response as if was written directly from console application.

Example: if you want enable server on IP 192.168.1.1 and Port 5412

sgcWebSocketClient.exe -server -server.ip 192.168.1.1 -server.port 5412