Close code is None after closing socket on frontend (node.js) #1568
Unanswered
PetrShchukin
asked this question in
Q&A
Replies: 2 comments
-
I think it'll depend on your consumer... channels/channels/generic/websocket.py Lines 83 to 90 in a32b513 (I think this is better in discussions. It's not really an issue per se.) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Don't seem to be able to convert just now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description: I have frontend on React, after some events like WebSocket.close() or when pressing 'back' button in a browser I'm getting close_code = None in channels. Shouldn't it be a particular code?
Steps to reproduce:
Expected behavior:
close_code should be a number value (0-4999)
Actual behavior:
close_code is None
Version: 3.0.1
Beta Was this translation helpful? Give feedback.
All reactions