channel property
WebSocketChannel
get
channel
Implementation
WebSocketChannel get channel {
if (_channel == null) {
_channel = WebSocketChannel.connect(
_uri,
);
_channel!.stream.listen((message) {
_listeners.forEach((key, callback) {
_process(key, callback, _parse(message));
});
});
}
return _channel!;
}