tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.55k stars 215 forks source link

Node Hangs indefinelty on tmi.Client() - Newer version of Node 21+ #555

Open 2chivi opened 1 month ago

2chivi commented 1 month ago

Actual behaviour: Node Hangs indefinelty on tmi.Client() - Newer version of Node 21+ on Linux Ubuntu LTE

Noticed some dependencies are out of date. Could that have to do with it? Not sure if tmiV1 is abandoned? Or if we are supposed to switch to v2?

Thanks

Expected behaviour:

Error log: No errors

Insert your error log here

Configuration

AlcaDesign commented 1 month ago

Related to your issue's problem: What version of tmi.js are you using? Node will hang if there are timers, open socket connections, etc., so can you give me minimal code that replicates this hang? Since all you said was "on tmi.Client()": no timeouts or intervals should be started before calling the connect method.

Is tmi.js@v1.x abandoned?

v1.x hasn't received an update in a while. With the v1.9.0-wip branch, I'd like to bring necessary updates like new events, replying, removing lots of dead code, and more. You can see the changes here: main...v1.9.0-wip.

If you'd like to try it as is, you can install the branch from GitHub using this and require/import tmi.js as normal:

npm i tmijs/tmi.js#v1.9.0-wip

[!WARNING] Not meant for production

This does involve breaking changes but it's mostly dead features and things I wouldn't expect people to be using.

Potentially breaking changes

Removed

Changes

Additions

Other changes can be seen here, as linked previously.

Other possible changes

This is an opportunity to make big changes to tmi.js.

Breaking changes

Changes