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