newWebSocket method
Construct a WebSocket instance for use in the browser.
Implementation
@override
Future<WebSocket> newWebSocket(Uri uri,
{Map<String, dynamic>? headers, Iterable<String>? protocols}) =>
BrowserWebSocket.connect(uri, headers: headers, protocols: protocols);