connect function

WebSocketChannel connect(
  1. Uri uri, {
  2. Iterable<String>? protocols,
  3. HttpClient? customClient,
})

Creates a new WebSocket connection.

Connects to the provided uri and returns a channel that can be used to communicate over the resulting socket.

Implementation

WebSocketChannel connect(
  Uri uri, {
  Iterable<String>? protocols,
  HttpClient? customClient,
}) {
  throw UnimplementedError();
}