-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python websocket client : issue #70
Comments
Can you post full code example you using to trigger this error? Also post full code example for server side you are running with noPoll so we can reproduce your error... |
// PYTHON ERROR: version(python3.7) // nopoll server part: void listener_on_message(noPollCtx* ctx, noPollConn* conn, noPollMsg* msg, noPollPtr user_data) { auto data = nopoll_msg_get_payload(msg); return; int main() { noPollCtx* ctx = nopoll_ctx_new(); if (!ctx) noPollConn* listener = nopoll_listener_new(ctx, "0.0.0.0", "8888"); nopoll_ctx_set_on_msg(ctx, listener_on_message, NULL); return 0; python websockets part: async def hello(): if name == 'main': |
I use python websocket connect nopoll server, create the issue:
line 141, in read_response
raise EOFError("connection closed while reading HTTP status line") from exc
the python handshake with server in function read_line function receive 0 byte data. no header?
I must use nopoll_conn_opts_add_origin_header ?
my javascript websocket is right to connect the server.
The text was updated successfully, but these errors were encountered: