Documentation
¶
Overview ¶
Package natsrt is a NATS transport for togo realtime. It implements togo.Broker: Publish fans events out over a NATS subject (so every app instance and any other service connected to NATS receives them), and Handler() is an SSE endpoint that subscribes to NATS and streams events to browser clients. Overrides the default in-process SSE broker when installed.
togo install togo-framework/realtime-nats
Env: NATS_URL (default nats://127.0.0.1:4222), NATS_SUBJECT (default togo.realtime).
Click to show internal directories.
Click to hide internal directories.