Re: Channels: rejecting web socket connections with a custom close code

2018-10-08 Thread Matt F
Hi Andrew, Thanks for clarifying. I didn't think to look at the ASGI spec but it is described quite well there under the WebSocket/Close section. Thanks for your hard work on this project. Regards, Matt On Saturday, 6 October 2018 10:47:46 UTC+1, Andrew Godwin wrote: > > Hi Matt, > > This

Channels: rejecting web socket connections with a custom close code

2018-10-03 Thread Matt F
Hello all, I have a question about the process of accepting/rejecting web socket connections in Channels consumers (v2.1.3). I have found that if I have code like this: class MyConsumer(JsonWebsocketConsumer): def connect(self): if authenticated: self.accept()