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

Method PublishRequest

nats.go:4380–4382  ·  view source on GitHub ↗

PublishRequest will perform a Publish() expecting a response on the reply subject. Use Request() for automatically waiting for a response inline.

(subj, reply string, data []byte)

Source from the content-addressed store, hash-verified

4378// reply subject. Use Request() for automatically waiting for a response
4379// inline.
4380func (nc *Conn) PublishRequest(subj, reply string, data []byte) error {
4381 return nc.publish(subj, reply, true, nil, data)
4382}
4383
4384// Used for handrolled Itoa
4385const digits = "0123456789"

Callers 15

TestNilConnectionFunction · 0.95
FetchMethod · 0.45
FetchBatchMethod · 0.45
TestDrainConnectionFunction · 0.45
TestAckForNonJetStreamFunction · 0.45

Calls 1

publishMethod · 0.95