-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
add switch_server method #15
Conversation
still needs to handle the registered entity event listeners
I also haven't tested this yet |
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.
Thanks for the PR! I have left a few comments but feel free to message on discord with regards to the entity listeners
as far as i know...
something funky is going on with the tabs
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.
I dont know what happened lol the tabs are 8 spaces wide and I cant get them to change to 4 spaces like how the rest of the repo is
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.
More Changes
That should be the Remote & Command stuff all done, just need to remove the entity events. They are set as attributes to the |
from my understanding the attribute names are the ids of the entities? maybe |
no idea if this is right or will work
Thanks, I cannot test this right now but the diff looks good. One thing - are you expecting the tabs and spaces to be fine? |
I just downloaded and ran this branch, rn it seems that method hangs on |
I didnt get a tabs/space error so it seems to be fine |
have no idea why 'close' doesn't work, it has a timeout param that defaults to 3 secs but still hangs after 3 secs
tested and seems to be working |
The entity listeners and command handler I didn't test, my bot doesn't use them (but probably will in the future) and I didn't write a test script for them. |
Seems ok for now. Command handler is fixed but haven't tested the entity events. If someone could that would be appreciated :) |
Hmm, I am confused as to the root cause of |
From what I understand, But I have no clue why |
Just saw this issue: websocket-client/websocket-client#592 seems to be similar to what I had experienced. |
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.
LGTM
still needs to handle the registered entity event listeners
not sure how to go about this but I'm assuming that you need to iterate through the current registered listeners, if the listener is an instance of
EntityEvent
then remove it.also have no idea how to restart the socket after disconnecting it, is it
await self.connect()
or does it need to be added to the current asyncio loop?