Client.part(channel) doesn't always cause client to leave the channel
Actual behaviour: I have a hard time reproducing this error, but on occasion I will issue a client.part and my bot will not leave the channel. It will however remove the reference from client.getChannels(). When I try to rejoin the channel via client.join the client is unable to join because it already exists and instead continually spams the join command.
Expected behaviour: When I do a client.part the client should leave the channel and remove the channel from the list.
Error log:
Insert your error log here
Server configuration
- Operating system:
- Node version (if applicable): 4.5.0
- NPM version (if applicable): 2.15.9
- tmi.js version: 1.1.2
Your resolve for issue: #204.
@stachu540 That isn't a resolution for the bug, that is a workaround.
There is no point to fixing it. All things works on Websocket environment (expected API). Expectation bugs near Server-Side, not on Client. There is nothing they can do.