Connecting to Twitch API with NodeJS and socket io

Oh yeah, sry, here is the full thing:

const tmi = require('tmi.js');
const twitch = new tmi.client({
    identity: {
        username: 'xxx',
        password: 'oauth:xxx'
    },
    channels: ['xxx']
});

twitch.connect(console.log('Connected with Twitch.'));

twitch.on('message', (message) => {
    console.log(message);
});