Remove unnecessary decode from received package#158
Remove unnecessary decode from received package#158oguzhanogreden wants to merge 2 commits intoinvisibleroads:masterfrom
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.
|
andresarcila
left a comment
There was a problem hiding this comment.
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.