MCPcopy
hub / github.com/nats-io/nats.go / ChanSubscribe

Method ChanSubscribe

js.go:105–105  ·  view source on GitHub ↗

ChanSubscribe creates channel based Subscription. See important note in Subscribe()

(subj string, ch chan *Msg, opts ...SubOpt)

Source from the content-addressed store, hash-verified

103 // ChanSubscribe creates channel based Subscription.
104 // See important note in Subscribe()
105 ChanSubscribe(subj string, ch chan *Msg, opts ...SubOpt) (*Subscription, error)
106
107 // ChanQueueSubscribe creates channel based Subscription with a queue group.
108 // See important note in QueueSubscribe()

Calls

no outgoing calls