MCPcopy Create free account
hub / github.com/daodst/chat / Start

Method Start

federationapi/consumers/sendtodevice.go:64–69  ·  view source on GitHub ↗

Start consuming from the client api

()

Source from the content-addressed store, hash-verified

62
63// Start consuming from the client api
64func (t *OutputSendToDeviceConsumer) Start() error {
65 return jetstream.JetStreamConsumer(
66 t.ctx, t.jetstream, t.topic, t.durable, t.onMessage,
67 nats.DeliverAll(), nats.ManualAck(),
68 )
69}
70
71// onMessage is called in response to a message received on the
72// send-to-device events topic from the client api.

Callers 1

NewInternalAPIFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected