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 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 10:05 AM, Fabien Millerand  
>> wrote:
>>
>>> 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.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-develop...@googlegroups.com.
>>> To post to this group, send email to django-d...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-developers.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-developers/c2f88798-b212-47a2-b058-05b2021787ae%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/6e22855d-1df8-4df4-aea3-c02d31e8b228%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 10:05 AM, Fabien Millerand  > wrote:
>
>> 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.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-develop...@googlegroups.com .
>> To post to this group, send email to django-d...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-developers/c2f88798-b212-47a2-b058-05b2021787ae%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/6cee5236-87ef-41d5-b382-4fba2d5fd049%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Channels: get IP address of client websocket

2017-02-17 Thread Andrew Godwin
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 10:05 AM, Fabien Millerand 
wrote:

> 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.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-developers/c2f88798-b212-47a2-b058-
> 05b2021787ae%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAFwN1up2eYb6%2BicL%3DFNvfNjzeKXdStTpogeRXe5dd9UQQtp1aA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/c2f88798-b212-47a2-b058-05b2021787ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.