Skip to content

Commit de1f873

Browse files
committed
Update cupertino_web_socket.dart
1 parent 54146b2 commit de1f873

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkgs/cupertino_http/lib/src/cupertino_web_socket.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,9 @@ class CupertinoWebSocket implements WebSocket {
274274
if (code != null) {
275275
reason = reason ?? '';
276276
await Future<void>.delayed(const Duration(seconds: 5));
277-
print(
278-
'${DateTime.now().millisecondsSinceEpoch / 1000.0} cancelWithCloseCode($code, $reason)');
277+
print('${DateTime.now().millisecondsSinceEpoch / 1000.0} '
278+
'cancelWithCloseCode($code, $reason) '
279+
'${_task.state} ${_task.error}');
279280
_task.cancelWithCloseCode(code, utf8.encode(reason).toNSData());
280281
await Future<void>.delayed(const Duration(seconds: 5));
281282
// Delay is 10 seconds!

0 commit comments

Comments
 (0)