node-websockify icon indicating copy to clipboard operation
node-websockify copied to clipboard

How to manage errors if port is already used

Open leonardospeca opened this issue 6 years ago • 1 comments

Hello, I would like to know how to manage errors if the port is already used, for example, now I'm getting this error and I can't "catch" it: The HTTP/S server is already being used by another WebSocket server

Maybe it could be useful make the initWsServer return a promise, or add a callback to manager errors

Thank you

leonardospeca avatar Oct 11 '19 08:10 leonardospeca

i get stuck in this. I also need the answer

mukhopj avatar Jun 27 '22 10:06 mukhopj