Subscribe creates an async Subscription for JetStream. The stream and consumer names can be provided with the nats.Bind() option. For creating an ephemeral (where the consumer name is picked by the server), you can provide the stream name with nats.BindStream(). If no stream name is specified, the l
(subj string, cb MsgHandler, opts ...SubOpt)
| 95 | // consumer with the given name, and if successful, bind to it. If the lookup fails, |
| 96 | // then the Subscribe() call will return an error. |
| 97 | Subscribe(subj string, cb MsgHandler, opts ...SubOpt) (*Subscription, error) |
| 98 | |
| 99 | // SubscribeSync creates a Subscription that can be used to process messages synchronously. |
| 100 | // See important note in Subscribe() |
no outgoing calls