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 is because the two ways of closing are different - closing before the 
> socket is open sends a HTTP error code (what browsers report for this is 
> different in terms of websocket errors), whereas closing once it is open 
> allows a websocket error to be used.
>
> This is referenced in the spec at 
> https://asgi.readthedocs.io/en/latest/specs/www.html#websocket but 
> somewhat obliquely; I’ll try to make it a bit clearer.
>
> Andrew
>
>>
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/12417d20-f76f-4d3b-ba04-2ed55b22757e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to