engine.io icon indicating copy to clipboard operation
engine.io copied to clipboard

Why wsEngine 'uws' didn't get released?

Open ldshi opened this issue 10 years ago • 4 comments

Thanks for the great job.

I checked the source code a bit, then found:

var WebSocketServer = (this.wsEngine ? require(this.wsEngine) : require('ws')).Server;

So even in the option set the wsEngine as 'uws', will still use the ws engine, I am wondering why 'uws' engine didn't get released, are there some serious potential problems to use 'uws' engine?

ldshi avatar Oct 17 '16 10:10 ldshi

@leonard-sxy the option wsEngine should enable you to use the uws engine, doesn't it? Please note that you can also set the env variable EIO_WS_ENGINE.

darrachequesne avatar Oct 18 '16 02:10 darrachequesne

Please reopen if needed.

darrachequesne avatar Oct 29 '16 16:10 darrachequesne

Maybe now that [email protected] is so nice and stable, it should be listed as an optional dependency and be picked by engine.io, falling back to ws when uws fails to load ?

kapouer avatar Dec 09 '16 08:12 kapouer

@kapouer let's do that! could you please open a PR?

darrachequesne avatar Dec 09 '16 08:12 darrachequesne