oa_gateway_testing

Module stomp

Source
Expand description

Mini STOMP broker, a peer client, and an adapter starter.

start_mini_broker is an in-process stand-in for ActiveMQ Classic: exact-destination fan-out, no auth, no persistence, no heartbeats. Most tests need no Docker. start_stomp_adapter turns reconnect off so a failed session fails the test instead of looping. Helpers panic on timeout or a surprising frame.

StructsΒ§

  • BrokerState πŸ”’
    Destinations β†’ subscribers, plus a process-wide message-id.
  • In-process STOMP 1.2 broker on an ephemeral port.
  • Raw STOMP client for tests: CONNECT, SUBSCRIBE, SEND, recv.
  • Sub πŸ”’
    One SUBSCRIBE: which connection, which id, and where to write MESSAGE frames.

FunctionsΒ§