Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Nov 22, 2023
1 parent 481ea06 commit 0e0de69
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkgs/web_socket_channel/lib/html.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ class HtmlWebSocketChannel extends StreamChannelMixin
: this(
WebSocket(
url.toString(),
(protocols?.toList() ?? const <String>[])
.map((e) => e.toJS)
.toList()
.toJS,
protocols?.map((e) => e.toJS).toList().toJS ?? JSArray(),
)..binaryType = (binaryType ?? BinaryType.list).value,
);

Expand Down

0 comments on commit 0e0de69

Please sign in to comment.