Connecting to Twitch API with NodeJS and socket io

You will need to refer to the tmi.js documentation

Which I can’t help with as I don’t use tmi.js I use the chat example I linked