Subscribe constructor

Subscribe(
  1. int requestId,
  2. String topic, {
  3. SubscribeOptions? options,
})

The requestId will identify the subscription server response. The topic is the actual topic to subscribe to or a prefix or wildcard topic as defined in the options.

Implementation

Subscribe(this.requestId, this.topic, {this.options}) {
  id = MessageTypes.codeSubscribe;
}