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

Method QueueSubscribe

enc.go:204–206  ·  view source on GitHub ↗

QueueSubscribe will create a queue subscription on the given subject and process incoming messages using the specified Handler. The Handler should be a func that matches a signature from the description of Handler from above. Deprecated: Encoded connections are no longer supported.

(subject, queue string, cb Handler)

Source from the content-addressed store, hash-verified

202//
203// Deprecated: Encoded connections are no longer supported.
204func (c *EncodedConn) QueueSubscribe(subject, queue string, cb Handler) (*Subscription, error) {
205 return c.subscribe(subject, queue, cb)
206}
207
208// Internal implementation that all public functions will use.
209func (c *EncodedConn) subscribe(subject, queue string, cb Handler) (*Subscription, error) {

Callers 2

TesEncodedConnRequestFunction · 0.95
TestRequestGOBFunction · 0.95

Calls 1

subscribeMethod · 0.95

Tested by 2

TesEncodedConnRequestFunction · 0.76
TestRequestGOBFunction · 0.76