handleChannelClose method

  1. @override
void handleChannelClose(
  1. Channel channel, [
  2. String description
])
override

Implementation

@override
void handleChannelClose(Channel channel, [String description]) {
  if (channel == sessionChannel) {
    sessionChannel = null;
  } else if (channel.cb != null) {
    channel.opened = false;
    channel.cb(channel, Uint8List(0));
  }
}