Publish publishes the data argument to the given subject. The data argument is left untouched and needs to be correctly interpreted on the receiver.
(subj string, data []byte)
| 4227 | // argument is left untouched and needs to be correctly interpreted on |
| 4228 | // the receiver. |
| 4229 | func (nc *Conn) Publish(subj string, data []byte) error { |
| 4230 | return nc.publish(subj, _EMPTY_, false, nil, data) |
| 4231 | } |
| 4232 | |
| 4233 | // Header represents the optional Header for a NATS message, |
| 4234 | // based on the implementation of http.Header. |