Closed char-khan closed 2 years ago
If error occurs while disconnecting, client tries to reconnect. This happens when disconnect() is called before connection is complete as below.
const client = new tmi.Client({ options: { debug: true } }); client.connect().catch(console.error); client.disconnect()
I'm not sure if there are any other cases that disconnect() causes error, but client should check to see if the user is trying to disconnect, I think
Thanks!
If error occurs while disconnecting, client tries to reconnect. This happens when disconnect() is called before connection is complete as below.
I'm not sure if there are any other cases that disconnect() causes error, but client should check to see if the user is trying to disconnect, I think