Re: Daphne does not handle wss requests

2017-02-25 Thread Giovanni Colapinto
Sadly it doesn't work, also with DEBUG=False On Saturday, 25 February 2017 02:19:17 UTC+1, chris rose wrote: > > I too experience this in my local development environment > > I find secure web sockets throwing an error in the browser console when > attempting to send a message: > > InvalidStateEr

Re: Daphne does not handle wss requests

2017-02-24 Thread chris rose
I too experience this in my local development environment I find secure web sockets throwing an error in the browser console when attempting to send a message: InvalidStateError: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable. I had attributed this

Re: Daphne does not handle wss requests

2017-02-24 Thread Andrew Godwin
Hrm, I don't know what's happening then, something in your browser is stopping the connection before it even gets to Daphne. You'd have to break out Wireshark or something and look at what the packets on the wire were (and that's tough with TLS). Anyone else have an idea what's happening? Andrew

Re: Daphne does not handle wss requests

2017-02-24 Thread Giovanni Colapinto
Yep, it works ssh://ubuntu@127.0.0.1:/opt/venv/spywebsockets/bin/python -u /opt/venv/spywebsockets/bin/daphne -e ssl:8003:privateKey=/etc/haproxy/keyring/spy.key:certKey=/etc/haproxy/keyring/spy.cert --proxy-headers -v2 spywebsockets.asgi:channel_layer 2017-02-24 09:05:00,246 INFO Star

Re: Daphne does not handle wss requests

2017-02-23 Thread Andrew Godwin
It looks correct - can you connect using https://127.0.0.1:8003/ at that point either? It's really odd that apparently the connection doesn't even happen at all. Andrew On Thu, Feb 23, 2017 at 2:55 AM, Giovanni Colapinto < giovanni.colapi...@gmail.com> wrote: > Hi. > > Before open a bug, could y

Daphne does not handle wss requests

2017-02-23 Thread Giovanni Colapinto
Hi. Before open a bug, could you please tell me if my setup is ok? Daphne 1.0.3 channels 1.0.3 routing.py channel_routing = [ route("websocket.connect", ws_connect, path=r"^/ws/chat/$"), route("websocket.connect", ws_connect_updates, path=r"^/ws/updates/$"), route("websocket.receive