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

Method PullSubscribe

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

PullSubscribe creates a Subscription that can fetch messages. See important note in Subscribe(). Additionally, for an ephemeral pull consumer, the "durable" value must be set to an empty string. When using PullSubscribe, the messages are fetched using Fetch() and FetchBatch() methods.

(subj, durable string, opts ...SubOpt)

Source from the content-addressed store, hash-verified

122 // set to an empty string.
123 // When using PullSubscribe, the messages are fetched using Fetch() and FetchBatch() methods.
124 PullSubscribe(subj, durable string, opts ...SubOpt) (*Subscription, error)
125}
126
127// JetStreamContext allows JetStream messaging and stream management.

Calls

no outgoing calls