You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from wsgiref.simple_server import make_server
from ws4py.websocket import EchoWebSocket
from ws4py.server.wsgirefserver import WSGIServer, WebSocketWSGIRequestHandler
from ws4py.server.wsgiutils import WebSocketWSGIApplication
server = make_server('', 9000, server_class=WSGIServer,
handler_class=WebSocketWSGIRequestHandler,
app=WebSocketWSGIApplication(handler_cls=EchoWebSocket))
server.initialize_websockets_manager()
server.serve_forever()
However, when I run it, I get the following error:
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/usr/local/lib/python2.7/dist-packages/ws4py/server/wsgiutils.py", line 101, in __call__
raise HandshakeError('Header %s is not defined' % key)
HandshakeError: Header HTTP_UPGRADE is not defined
This seems to be some weird header stuff that's a bit beyond my knowledge level and might not even be the fault of ws4py. Additionally, this isn't really that big of a deal, since the built-in CherryPy example works great, so I'm going to go with that for now. Just thought I would mention it for future reference.
The text was updated successfully, but these errors were encountered:
From the documentation I extracted this example:
However, when I run it, I get the following error:
This seems to be some weird header stuff that's a bit beyond my knowledge level and might not even be the fault of ws4py. Additionally, this isn't really that big of a deal, since the built-in CherryPy example works great, so I'm going to go with that for now. Just thought I would mention it for future reference.
The text was updated successfully, but these errors were encountered: