invisibleroads / invisibleroads/socketIO-client
About connect to the latest node.js socket.io server
- Dominant language
- Python
- Stars
- 441
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.