-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cWS instead of uWS #567
Comments
Hi! I haven't had the time to check the |
Unfortunatelly not, I've discovered that there are some incompatibilites with original ws module, like handleUpgrade has different arguments, 2 instead of 4, the main important one was callback param, I've done some changes to this method and it works but then another problem occured so I gave up for a while. Wonder if it's even possible to support it in engine.io without big changes |
So far so good, I've upgraded "handleUpgrade" method to be compatible with ws module and also changed default EventEmitter like here: https://github.com/ClusterWS/cWS#replace-eventemitter |
Whats the recommended uws workaround? Will it be removed from the wsEngine switch in server.js? (line 107) |
@yambakshi, it is because you need to install uws first from npm (watch out for versions, read about uws author and why he had deleted it from npm) |
@Kamil93 What do you mean? Could you elaborate more on where to read? |
@klimashkin, I'm not sure if this solves your issue but we have created a new package based on the original uws merged with some fixes from cws. The new package should be compatible with node 10 and 12. |
Please take a look at eiows, by @mmdevries. Instructions here: https://socket.io/docs/server-installation/#Other-WebSocket-server-implementations |
You want to:
info
Does engine.io should support
cWS
instead ofuWS
websocket module?uWS
is dead andcWS
is the most mature successor and usesuWebsocket
under the hood too.I've tried to implement it by myself in server.js of engine.io adding simply new case in switch statement:
It seems to not working at all, but it states compatibility with
ws
module.cWS github project: https://github.com/ClusterWS/cWS
The text was updated successfully, but these errors were encountered: