QueueSubscribe will create a queue subscription on the given subject and process incoming messages using the specified Handler. The Handler should be a func that matches a signature from the description of Handler from above. Deprecated: Encoded connections are no longer supported.
(subject, queue string, cb Handler)
| 202 | // |
| 203 | // Deprecated: Encoded connections are no longer supported. |
| 204 | func (c *EncodedConn) QueueSubscribe(subject, queue string, cb Handler) (*Subscription, error) { |
| 205 | return c.subscribe(subject, queue, cb) |
| 206 | } |
| 207 | |
| 208 | // Internal implementation that all public functions will use. |
| 209 | func (c *EncodedConn) subscribe(subject, queue string, cb Handler) (*Subscription, error) { |