Skip to content

STOMP

STOMP is the text messaging protocol used notably by Spring applications (spring-websocket) and ActiveMQ. Restorm implements it over WebSocket.

Right-click in the tree ▸ Add ▸ STOMP request.

A STOMP tab: the protocol version, the CONNECT header, two subscriptions with their acknowledgement mode, and the Send section

FieldRole
URLws:// or wss://
STOMP version1.1 or 1.2
Connection headersThe CONNECT frame’s headers: host, login, passcode, heart-beat
SubscriptionsA list: identifier, destination, acknowledgement mode
Send destinationThe SEND frame’s destination
Send bodyThe SEND frame’s payload
Send headersThe SEND frame’s headers

Each subscription carries an acknowledgement mode:

ModeBehaviour
autoThe broker considers the message delivered as soon as it is sent
clientCumulative acknowledgement by the client
client-individualAcknowledgement message by message

On connecting, Restorm emits the CONNECT then one SUBSCRIBE per configured subscription.

STOMP has no dedicated credential fields: login and passcode are ordinary connection headers. Use a Secret-typed value for the passcode.

STOMP connect (emits the CONNECT and the SUBSCRIBE frames, connected and message outputs), STOMP send (SEND frame) and STOMP close (DISCONNECT). See Connections and streams.

Two targets: Node.js (@stomp/stompjs) and wscat.