Open tonyho opened 6 years ago
Haven't looked to hard at this, but seems possibly related to https://github.com/feus4177/socketIO-client-2/issues/10. Basically this library (and the fork in the link) doesn't support socket.io protocol version 2.0. I remeber seeing a fork that did, but forget which one it is.
I had a similar issue, but because I had forgotten to update the protocol version on the server. In case someone else ends up here looking for it, the fork with support to 2.0 is socketIO-client-nexus.
Verified that with socketIO-client-nexus, the issue is fixed. Note that you will need to change import from socketIO_client to socketIO_client_nexus.
Thank you guys soooo much. I have just created an account to show my appreciation. I was stuck on this for ages and couldn't see what was wrong with my code.
I setup and launch the chat server example at here Chat server example. And I can enter login and connect and send message using the broswer and the java socket.io client.
But I can't login to the chat server using python socketio-client. Below is the python client code: $ cat client.py, the port is change to 3001, original is 3000
Below is the log when run it:
And at the node chat server, I add the DEBUG=* to view the logs, when the python client test program run, the server outputs following:
As comparison, when the other socket.io client(eg: from web browser, http://localhost:3001) login the server output followings:
Is there any example to use the python socket.io client with chat example server? Or any wrong with my test code? Or Can someone give a hint to debug?