Skip to content
Discussion options

You must be logged in to vote

Yes, that should work. I would put the auth decorator above the websocket one, though, so that the credentials are checked before the websocket handshake. Also keep in mind that on the browser the WebSocket API does not include the option to send custom headers, so not counting hacks that attempt to overcome this big limitation your only option is to use basic auth.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by agieocean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants