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

Method BindRecvChan

netchan.go:68–70  ·  view source on GitHub ↗

BindRecvChan binds a channel for receive operations from NATS. Deprecated: Encoded connections are no longer supported.

(subject string, channel any)

Source from the content-addressed store, hash-verified

66//
67// Deprecated: Encoded connections are no longer supported.
68func (c *EncodedConn) BindRecvChan(subject string, channel any) (*Subscription, error) {
69 return c.bindRecvChan(subject, _EMPTY_, channel)
70}
71
72// BindRecvQueueChan binds a channel for queue-based receive operations from NATS.
73//

Callers 7

TestBadChanFunction · 0.80
TestSimpleRecvChanFunction · 0.80
TestDecoderErrRecvChanFunction · 0.80

Calls 1

bindRecvChanMethod · 0.95

Tested by 7

TestBadChanFunction · 0.64
TestSimpleRecvChanFunction · 0.64
TestDecoderErrRecvChanFunction · 0.64