Can Socket.io be used on node.js if node.js was compiled without openssl? Can Socket.io be used on node.js if node.js was compiled without openssl? express express

Can Socket.io be used on node.js if node.js was compiled without openssl?


If you change

https://github.com/websockets/ws/blob/master/lib/WebSocketServer.js#L10

from

  , crypto = require('crypto')

to

  , crypto = null

Since this object is only used for secure connections - not a nice solution as you are modifying an included module but it should work.

I don't think modifications are actually needed here (but on testing you might find you need to):

https://github.com/websockets/ws/blob/master/lib/WebSocket.js#L13https://github.com/websockets/ws/blob/master/lib/WebSocket.js#L572