connectToWebSocket method

WebSocketChannel connectToWebSocket(
  1. String url,
  2. Authentication authentication
)

Implementation

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