connectToWebSocket method
Implementation
WebSocketChannel connectToWebSocket(
String url, Authentication authentication) {
WebSocketChannel webSocketChannel = IOWebSocketChannel.connect(url);
_sendConnectRequest(webSocketChannel);
_sendLoginRequest(webSocketChannel, authentication);
return webSocketChannel;
}