removeSubscription method

void removeSubscription(
  1. String channel
)

Remove a subscription from the internal map.

This should be called after calling subscription.delete() to ensure the subscription is fully cleaned up and won't be re-registered on reconnect.

Example:

await subscription.delete();
transmit.removeSubscription('channel-name');

Implementation

void removeSubscription(String channel) {
  _subscriptions.remove(channel);
}