Channels: get IP address of client websocket

2017-02-17 Thread Fabien Millerand
As far as I know I cannot get client websocket public IP address with channels. I even looked into the sessions and couldn't find anything. Did I miss it? -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group

Re: Channels: get IP address of client websocket

2017-02-19 Thread Fabien Millerand
Got it. Sorry and thanks. Le vendredi 17 février 2017 19:22:27 UTC+1, Andrew Godwin a écrit : > > It's in the connect message, as message['client']: > http://channels.readthedocs.io/en/latest/asgi.html#connection > > Andrew > > On Fri, Feb 17, 2017 at

Re: Channels: get IP address of client websocket

2017-02-19 Thread Fabien Millerand
Just for info, it cannot be emulated in the HttpClient for testing, unlike the regular django one where REMOTE_ADDR='IP_ADDRESS' can be passed Le dimanche 19 février 2017 20:56:29 UTC+1, Fabien Millerand a écrit : > > Got it. Sorry and thanks. > > > > Le vendredi 17