From d59357df3f92a5b5e7f948dfcc35b542fbe37a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Krasi=C5=84ski-Sroka?= Date: Thu, 1 Aug 2024 11:35:09 +0200 Subject: [PATCH] Provides non-misleading close event reason --- lib/src/socket.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/socket.dart b/lib/src/socket.dart index e7566c7..9cfa4b0 100644 --- a/lib/src/socket.dart +++ b/lib/src/socket.dart @@ -548,7 +548,7 @@ class PhoenixSocket { } final ev = PhoenixSocketCloseEvent( - reason: _ws?.closeReason ?? 'WebSocket could not establish a connection', + reason: _ws?.closeReason ?? 'WebSocket closed without providing a reason', code: _ws?.closeCode, ); final exc = PhoenixException(socketClosed: ev);