[Vuejs]-Uncaught TypeError: Cannot call a class as a function vue-socket.io

3👍

I got the solution from here
https://github.com/MetinSeylan/Vue-Socket.io/issues/174#issuecomment-460021715

 const SocketInstance = socketio.connect('http://localhost:3000', {
    query: {
        token: window.localStorage.getItem('auth')
    }
});

Vue.use(new VueSocketIO({
    debug: true,
    connection: SocketInstance
}));

Leave a comment