connect function
- Uri uri, {
- Iterable<
String> ? protocols, - 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,
}) {
return HtmlWebSocketChannel.connect(uri, protocols: protocols);
}