tmi.js icon indicating copy to clipboard operation
tmi.js copied to clipboard

Client.part(channel) doesn't always cause client to leave the channel

Open azazael13 opened this issue 8 years ago • 3 comments

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

azazael13 avatar Mar 08 '17 00:03 azazael13

Your resolve for issue: #204.

stachu540 avatar Mar 08 '17 04:03 stachu540

@stachu540 That isn't a resolution for the bug, that is a workaround.

azazael13 avatar Mar 08 '17 20:03 azazael13

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.

stachu540 avatar Mar 10 '17 07:03 stachu540