dispose method

void dispose()

Call this method to dispose the channel client.

Implementation

void dispose() {
  client.state.removeChannel('$cid');
  state?.dispose();
  _muteExpirationTimer?.cancel();
  _keyStrokeHandler.cancel();
}