connect static method

WebSocketChannel connect(
  1. Uri uri, {
  2. List<String>? protocols,
  3. Map<String, String>? headers,
})

Implementation

static WebSocketChannel connect(
  Uri uri, {
  List<String>? protocols,
  Map<String, String>? headers,
}) {
  return IOWebSocketChannel.connect(
    uri,
    protocols: protocols,
    headers: headers,
  );
}