Skip to content

Commit eb8ada3

Browse files
committed
Removes unnecessary 4000 code
1 parent 0e9637f commit eb8ada3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/src/socket_connection.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ typedef WebSocketChannelFactory = Future<WebSocketChannel> Function();
1313
final _logger = Logger('phoenix_socket.connection');
1414

1515
// Some custom close codes.
16-
const unknownReason = 4000;
1716
const heartbeatTimedOut = 4001;
1817
const forcedReconnectionRequested = 4002;
1918

@@ -395,7 +394,7 @@ class _WebSocketConnection {
395394
onDone: () {
396395
onStateChange(
397396
WebSocketDisconnected._(
398-
_ws.closeCode ?? unknownReason,
397+
_ws.closeCode ?? noStatusReceived,
399398
_ws.closeReason,
400399
),
401400
);

0 commit comments

Comments
 (0)