NewMsg creates a message for publishing that will use headers.
(subject string)
| 4273 | |
| 4274 | // NewMsg creates a message for publishing that will use headers. |
| 4275 | func NewMsg(subject string) *Msg { |
| 4276 | return &Msg{ |
| 4277 | Subject: subject, |
| 4278 | Header: make(Header), |
| 4279 | } |
| 4280 | } |
| 4281 | |
| 4282 | const ( |
| 4283 | hdrLine = "NATS/1.0\r\n" |
no outgoing calls