Skip to main content
HTTPEventBridge forwards event JSON over HTTP and can optionally expose an inbound HTTP listener.

Go support

HTTPEventBridge is not implemented in abxbus-go yet. Use JSONLEventBridge for the currently supported Go bridge.

Constructor params

  • send_to: optional outbound endpoint (http:// or https://)
  • listen_on: optional inbound endpoint (http:// only)
  • name: optional bridge label

Setup with a bus

Behavior

  • emit(...) serializes an event and sends a POST request to send_to.
  • on(...) registers handlers on the bridge’s internal inbound bus and auto-starts the listener when needed.
  • Inbound payloads are parsed back into BaseEvent, reset to pending state, then emitted on the internal bus.
  • close() shuts down listener/server resources and the internal bus.
  • In TypeScript, listener mode (listen_on) is supported in Node.js runtimes.