Closed asennoussi closed 8 years ago
Getting same error "Client does not wish to upgrade" Were you able to solve it?
How can I use the django-websocket redis with nginx webserver? I got this error:
HandshakeError: HTTP server protocol must be 1.1
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/ws4redis/wsgi_server.py", line 94, in __call__
self.assure_protocol_requirements(environ)
File "/usr/local/lib/python3.5/dist-packages/ws4redis/wsgi_server.py", line 57, in assure_protocol_requirements
raise HandshakeError('HTTP server protocol must be 1.1')
ws4redis.exceptions.HandshakeError: HTTP server protocol must be 1.1
Starting late response on websocket
Finish non-websocket response with status code: 400
Hello, I'm trying to make the websocket work, but I'm a little bit confused. So I have few questions: This piece of code
Does it automatically create the route for
/foobar
? Also in developer mode, I get this errorFull error code :
So what I did is create a class
Add the url route
url(r'^ws/socket/$', MyTypicalView.as_view(), name='socket'),
But I don't know if what I'm doing is the right thing. Please help.
PS: I'm not loading the templates synchronously. I'm connecting to websocket from chrome console, because I'm planning to include this in an angularjs project.