I just installed socket.io for the first time, and at the end it gave me this message:
To install WS with blazing fast native extensions, use
<npm install ws --ws:native>
What does that mean? Is WS replacement for socket.io? I googled around and I can’t figure it out. Or is it replacement for node.js? Or is it something I can install alongside socket.io and node.js?
Also I assume the message refers to this ws?
Apparently, ws is a dependency of
socket.io-client, which is a dependency ofsocket.io. If you want to build native extensions forws, you can pass--ws:nativetonpm.You see the message because
wsecho it when not being installed with--ws:native. You can safely ignore the message, or try passing--ws:nativetonpmwhen installingsocket.io.AFAICT,
socket.io-clientonly uses it to connect to asocket.ioserver from node.js — i.e. only for testing purposes. So it really shouldn’t matter whether you compile it with native extensions or not.