Thursday, September 17, 2020

Reject a Websocket connection with a code.

Hi guys, please read my Stackoverflow 
question: 

https://stackoverflow.com/questions/63862762/django-channels-correct-way-to-reject-an-unauthorized-websocket-request

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?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b00eeb94-bd3d-4dfd-aefd-851c08ec33f4n%40googlegroups.com.

No comments:

Post a Comment