We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e9637f commit eb8ada3Copy full SHA for eb8ada3
lib/src/socket_connection.dart
@@ -13,7 +13,6 @@ typedef WebSocketChannelFactory = Future<WebSocketChannel> Function();
13
final _logger = Logger('phoenix_socket.connection');
14
15
// Some custom close codes.
16
-const unknownReason = 4000;
17
const heartbeatTimedOut = 4001;
18
const forcedReconnectionRequested = 4002;
19
@@ -395,7 +394,7 @@ class _WebSocketConnection {
395
394
onDone: () {
396
onStateChange(
397
WebSocketDisconnected._(
398
- _ws.closeCode ?? unknownReason,
+ _ws.closeCode ?? noStatusReceived,
399
_ws.closeReason,
400
),
401
);
0 commit comments