You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to implement ConnectionRefused exception messaging to signal to my clients why their connections are refused.
However, my clients use the socket.io library with the websocket transport only (polling transport disabled). And it seems that that triggers the following codepath:
Activity
miguelgrinberg commentedon Jun 15, 2021
The websocket.close event in ASGI does not allow a payload to be included.
I'll have to think about this to see if there is any way within the ASGI and Socket.IO rules to pass on an error message with a rejection.