bindChannel static method

void bindChannel(
  1. String hostName,
  2. Channel channel
)

bind channel to host

Implementation

static void bindChannel(String hostName, Channel channel) {
  if (_hosts.containsKey(hostName)) {
    _hosts[hostName]!.bindChannel(channel);
  } else {
    throw HostNotFoundException(name: hostName);
  }
}