Realtime
drift.Backbone.Realtime.Channel(name): in-slice pub/sub, from the server side.
Signatures
Publish(msg any) (int, error) // → recipient count · Presence() (int, error) // → connected count
Both return a count, which is the useful part: Publish tells you how many sockets actually
received the message, so a fan-out to nobody is visible rather than silent.
Browsers subscribe directly
The SDK is only the server half. A browser joins a channel over WebSocket at
/realtime/<channel>, same-origin with your Canvas site, so
there is no cross-origin handshake and no broker to run.
A channel has no authentication and no authorization.
To stream a response from a single function call rather than to a shared channel, add
stream = "sse" or stream = "ws" to its function; see
Writing a handler.