-
Notifications
You must be signed in to change notification settings - Fork 205
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
Remove unnecessary decode from received package #158
base: master
Are you sure you want to change the base?
Conversation
Since this package doesn't seem to be worked on very much, I went ahead and forked it and implemented your fixes. For anyone interested working with 2.x you can use it with |
This pull still has an issue with unicode handling in the _read_packet_text def in parsers.py. The last two lines need to pull the packet_text using the decoded contents and then re-encode the packet_text.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this worked for me, I upgraded Node from v0.42 to version 6.11.3 and my application in python stopped working. I applied this pull request and everything worked again
This worked for me, thanks. Node 6, npm |
socketio/socket.io#2833 |
Out of interest does this fix the issue described in #129 (comment) ? |
@Nakroma I tried using the nexus package but was still getting the I guess this issue is still up in the air? |
@BenWoodford could you give me a code snippet for reproduction? I'm on python |
Perhaps it’s a different issue with the same symptom then... I’m tinkering with the pyloopenergy library and that’s what’s throwing a StopIteration (as per this home-assistant/core#8137 (comment)) Hmm |
@BenWoodford @Nakroma In Don't know if the the same issue - and if so whether it's practical to port it back. |
@Nakroma I believe there's an issue with your fork where the connect/reconnect events are never raised. I added some further debugging and it seems like I'm only receiving packets of type 3 & 4 Edit: disconnect is actually being raised, just not connect/reconnect. |
this fix my issue connecting to cncjs. thanks! |
Fixes #155.
See here for why this works. Ultimately, my commit can lead to a bit more simplification of the code. Thought I'd leave that for @invisibleroads seeing that there is a 8.0.0 branch.