From 0700b5394fa7e2aef5af966decad07c83c3ee411 Mon Sep 17 00:00:00 2001 From: Vitya <62399526+voiduin@users.noreply.github.com> Date: Sun, 26 Oct 2025 13:49:13 +0300 Subject: [PATCH] Update server.rst --- docs/server.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/server.rst b/docs/server.rst index 9261a42..7dac4fb 100644 --- a/docs/server.rst +++ b/docs/server.rst @@ -248,7 +248,7 @@ message:: @sio.event def connect(sid, environ, auth): - raise ConnectionRefusedError('authentication failed') + raise socketio.exceptions.ConnectionRefusedError('authentication failed') The disconnect handler receives the ``sid`` assigned to the client and a ``reason``, which provides the cause of the disconnection::