Skip to content

Commit

Permalink
Small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Nov 22, 2023
1 parent 9e80b8d commit dcfcef1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions 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 dcfcef1

Please sign in to comment.