WebSocket Issues
Getting the following error when trying to connect using a websocket:
failed: Error during WebSocket handshake: Unexpected response code: 200
not working with reconnecting, or vanilla websockets. This seems to be the case even with no custom js.
Reproduce:
Create an empty html page, with included libraries: Cookies and ReconnectingWebSockets. write:
var ws = new ReconnectingWebSocket(ws_url);
at this point, you will get the error supplied above.
Comments (5)
-
repo owner -
reporter The value is as expected, it is
ws://localhost:8080/
. seems to be failing still though.actual value, (by calling
ws_url
) is"ws://localhost:8080"
-
repo owner It should be ws[s]://localhost:8080/push
-
reporter hmm, I'm using
HEAD
for both projects. and am using thews_url = protocol + location.host + "{{ reverse_url('push') }}";
provided -
repo owner - changed status to invalid
We do need to investigate the fact that reverse_url isn't working but that's something we should do in another issue.
- Log in to comment
What's the value of ws_url?