Reject a Websocket connection with a code.

30 views
Skip to first unread message

Stefan Cardnell

unread,
Sep 17, 2020, 9:47:28 AM9/17/20
to Django users
Hi guys, please read my Stackoverflow 
question: 


I'm having an issue rejecting a websocket connection and have the client receive the associated code (unauthorized, bad page, redis down, etc...). 

What is the best way to do this? Do I need to accept and then close immediately? Is there any possibility for communication in that gap?
Reply all
Reply to author
Forward
0 new messages