Skip to content

Commit

Permalink
Small tweak (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Nov 22, 2023
1 parent 9e80b8d commit d4a8d70
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 d4a8d70

Please sign in to comment.