Request will send a request payload and deliver the response message, or an error, including a timeout if no message was received properly.
(subj string, data []byte, timeout time.Duration)
| 4624 | // Request will send a request payload and deliver the response message, |
| 4625 | // or an error, including a timeout if no message was received properly. |
| 4626 | func (nc *Conn) Request(subj string, data []byte, timeout time.Duration) (*Msg, error) { |
| 4627 | return nc.request(subj, nil, data, timeout) |
| 4628 | } |
| 4629 | |
| 4630 | func (nc *Conn) useOldRequestStyle() bool { |
| 4631 | nc.mu.RLock() |