We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 481ea06 commit 0e0de69Copy full SHA for 0e0de69
pkgs/web_socket_channel/lib/html.dart
@@ -78,10 +78,7 @@ class HtmlWebSocketChannel extends StreamChannelMixin
78
: this(
79
WebSocket(
80
url.toString(),
81
- (protocols?.toList() ?? const <String>[])
82
- .map((e) => e.toJS)
83
- .toList()
84
- .toJS,
+ protocols?.map((e) => e.toJS).toList().toJS ?? JSArray(),
85
)..binaryType = (binaryType ?? BinaryType.list).value,
86
);
87
0 commit comments