onSubscription method

Hook onSubscription(
  1. String channel
)

Trigger onSubscription handlers.

Implementation

Hook onSubscription(String channel) {
  _handlers[HookEvent.onSubscription]?.forEach((handler) {
    handler(channel);
  });
  return this;
}