We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if you want to connect to a node.js socket.io server, you should modify the parsers.py as:
def _read_packet_length(content, content_index): end = content_index while content[end] != ":": end += 1 packet_length_string = content[content_index:end] end += 1 content_index = end #print("_read_packet_length",packet_length_string) return content_index, int(packet_length_string)
def _read_packet_text(content, content_index, packet_length): packet_text = content[content_index:content_index + packet_length] #print("_read_packet_text",packet_text) return content_index + packet_length, packet_text
The text was updated successfully, but these errors were encountered:
works for me!!!!!
Sorry, something went wrong.
SocketIO('localhost',1337,wait_for_connection=False, transports=('websocket'), resource='socket.io', hurry_interval_in_seconds=1 )
Gives ConnectionError: unexpected status code (400 {"code":0,"message":"Transport unknown"})
I have same issue
No branches or pull requests
if you want to connect to a node.js socket.io server, you should modify the parsers.py as:
def _read_packet_length(content, content_index):
end = content_index
while content[end] != ":":
end += 1
packet_length_string = content[content_index:end]
end += 1
content_index = end
#print("_read_packet_length",packet_length_string)
return content_index, int(packet_length_string)
def _read_packet_text(content, content_index, packet_length):
packet_text = content[content_index:content_index + packet_length]
#print("_read_packet_text",packet_text)
return content_index + packet_length, packet_text
The text was updated successfully, but these errors were encountered: