Skip to main content

STOMP 1.2

The STOMP (Simple Text Oriented Messaging Protocol) 1.2 implementation provides text-based interoperability for messaging clients.
It is well-suited for environments where human-readable frames and protocol simplicity are preferred.

Features

  • Text-based protocol with a simple frame structure
  • Version 1.2 supported
  • Heart-beating to detect idle/disconnected peers
  • Message acknowledgments (ACK/NACK)
  • Optional Base64 encoding for binary payloads

Configuration

Example:

protocols:
stomp:
version: "1.2"
port: 61613
heart_beat: "10000,10000"
maxBufferSize: 65535
maxReceive: 1000
base64EncodeBinary: true

Parameters

FieldTypeDefaultDescription
versionString1.2STOMP protocol version.
portInteger61613Port to listen for STOMP connections.
heart_beatString10000,10000Heartbeat interval (client, server) in ms.
maxBufferSizeInteger65535Maximum STOMP frame buffer size.
maxReceiveInteger1000Maximum receive limit for frames.
base64EncodeBinaryBooleantrueWhether to Base64 encode outgoing binary payloads. If false, assumes plain text payloads.

Notes

  • STOMP is designed to be simple and human-readable, making it easier to debug than binary protocols.
  • Base64 encoding ensures binary data can be carried safely, but adds overhead. Disable it if your clients can handle binary payloads directly.
  • The STOMP configuration integrates seamlessly with other MAPS protocols, allowing bridging to MQTT, AMQP, NATS, and more.