Using websocket-client from the server, problem with fibers

I am trying to use a websocket api from the server, the code is:

import io from ''

const wsUrl = 'wss://'
const socket = new io(wsUrl)

socket.on('open', () => {
   console.log('opening connection')

But the console.log never outputs. There are no error messages from the server. On the contrary the code runs well in the browser.

I also tried doing something like:

socket.on('open', Meteor.bindEnvironment(() => {
   console.log('opening connection')

But with no result, any idea what might be going wrong?

Solved used a different library, nothing to do with Meteor.