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
I have problems establishing a websocket connection. This issue should be related to an Issue on Stackoverflow.
For testing-purposes I have the following small flask app:
The server commes up but engaging a websocket connection does not work
var socket = new WebSocket('ws://localhost:5000');
This JS call causes server side exception:
(6192) accepted ('127.0.0.1', 64292)
127.0.0.1 - - [16/Mar/2016 23:13:12] "GET /socket HTTP/1.1" 404 342 0.000000
Traceback (most recent call last):
File "C:\Users\Benjamin\AppData\Local\Programs\Python\Python35\lib\site-packages\eventlet\greenpool.py", line 82, in _spawn_n_impl
func(*args, **kwargs)
File "C:\Users\Benjamin\AppData\Local\Programs\Python\Python35\lib\site-packages\eventlet\wsgi.py", line 719, in process_request
proto.__init__(sock, address, self)
File "C:\Users\Benjamin\AppData\Local\Programs\Python\Python35\lib\socketserver.py", line 684, in __init__
self.handle()
File "C:\Users\Benjamin\AppData\Local\Programs\Python\Python35\lib\http\server.py", line 417, in handle
self.handle_one_request()
File "C:\Users\Benjamin\AppData\Local\Programs\Python\Python35\lib\site-packages\eventlet\wsgi.py", line 330, in handle_one_request
self.raw_requestline = self.rfile.readline(self.server.url_length_limit)
OSError: raw readinto() returned invalid length -1 (should have been between 0 and 8192)
and client side exception:
WebSocket connection to 'ws://localhost:5000/socket' failed: Error during WebSocket handshake: Unexpected response code: 404
The text was updated successfully, but these errors were encountered:
SocketIO is not the same as WebSocket. To connect to a SocketIO server you need to use a SocketIO client. See the Javascript code in the example included in this repository for an example.
I have problems establishing a websocket connection. This issue should be related to an Issue on Stackoverflow.
For testing-purposes I have the following small flask app:
The server commes up but engaging a websocket connection does not work
This JS call causes server side exception:
and client side exception:
The text was updated successfully, but these errors were encountered: