getChannel static method
get bound channel
Implementation
static Channel getChannel(String hostName, String channelName) {
if (!_hosts.containsKey(hostName)) {
throw HostNotFoundException(name: hostName);
} else {
if (!_hosts[hostName]!._channels.containsKey(channelName)) {
throw ChannelNotFoundException(name: channelName);
} else {
return _hosts[hostName]!._channels[channelName]!;
}
}
}