leave method

  1. @override
void leave(
  1. String name
)
override

Leave the given channel, as well as its private and presence variants.

Implementation

@override
void leave(String name) {
  List<String> channels = [name, 'private-$name', 'presence-$name'];

  for (var name in channels) {
    leaveChannel(name);
  }
}