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 'socket.io-client'

const wsUrl = 'wss://ws.blockchain.info/inv'
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 https://github.com/websockets/ws, nothing to do with Meteor.