newWebSocket method
Construct a WebSocket instance that leverages SockJS for use in the browser.
Implementation
@override
Future<WebSocket> newWebSocket(Uri uri,
{Map<String, dynamic>? headers, Iterable<String>? protocols}) =>
SockJSWebSocket.connect(uri,
debug: sockJSDebug,
noCredentials: sockJSNoCredentials,
protocolsWhitelist: sockJSProtocolsWhitelist,
timeout: sockJSTimeout);