Skip to content

Commit

Permalink
Debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Mar 19, 2024
1 parent e1ada6d commit 5605c0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/cupertino_http/lib/src/cupertino_web_socket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ class CupertinoWebSocket implements WebSocket {
unawaited(_events.close());
if (code != null) {
reason = reason ?? '';
_task.cancelWithCloseCode(code, Data.fromList(reason.codeUnits));
print('Closing with code: $code $reason');
_task.cancelWithCloseCode(code, Data.fromList(utf8.encode(reason)));
} else {
_task.cancel();
}
Expand Down

0 comments on commit 5605c0e

Please sign in to comment.