Constructs a new WebSocket instance.
WebSocket
Future<WebSocket> newWebSocket(Uri uri, {Map<String, dynamic>? headers, Iterable<String>? protocols});