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)
| 4378 | // reply subject. Use Request() for automatically waiting for a response |
| 4379 | // inline. |
| 4380 | func (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 |
| 4385 | const digits = "0123456789" |