Skip to main content
JSONLEventBridge appends one event JSON payload per line and tails the file for inbound events.

Constructor params

  • path: JSONL file path
  • poll_interval: tail polling interval in seconds (default 0.25)
  • name: optional bridge label

Setup with a bus

Behavior

  • emit(...) appends compact JSON payload + newline to the file.
  • on(...) auto-starts a tail loop and registers inbound handlers.
  • Start cursor is initialized at current EOF, so only newly appended lines are processed.
  • Malformed lines are ignored; valid lines are parsed into events, reset, and emitted on the internal bus.
  • Runtime note: TypeScript JSONL bridge is Node.js-only. Go’s JSONL bridge uses local filesystem polling.