Publish performs a synchronous publish to a stream and waits for ack from server. It accepts subject name (which must be bound to a stream) and message payload.
(ctx context.Context, subject string, payload []byte, opts ...PublishOpt)
| 72 | // from server. It accepts subject name (which must be bound to a stream) |
| 73 | // and message payload. |
| 74 | Publish(ctx context.Context, subject string, payload []byte, opts ...PublishOpt) (*PubAck, error) |
| 75 | |
| 76 | // PublishMsg performs a synchronous publish to a stream and waits for |
| 77 | // ack from server. It accepts subject name (which must be bound to a |
no outgoing calls