closeSubscription method

Future<void> closeSubscription(
  1. String id
)

Implementation

Future<void> closeSubscription(String id) async {
  if (!hasActiveSubscription(id)) {
    return;
  }
  activeSubscriptions.remove(id);
  ClientMsg closeMsg = ClientMsg("CLOSE", id: id);
  await send(closeMsg);
}