engine.io: Cannot use 'uws', because it's been abandoned
- report a bug
- request a feature
Current behaviour
For Nodejs 8.x and 9.x (with uws = 8.x) works properly.
For Nodejs 10.x + uws (>= 8.x <= 9.x): it throws an error saying “Error: Compilation of µWebSockets has failed and there is no pre-compiled binary available for your system. Please install a supported C++11 compiler and reinstall the module ‘uws’”.
For Nodejs 10.x + uws (>=10.x):cannot find module ‘uws’.
Steps to reproduce (if the current behaviour is a bug)
Just assign ‘uws’ to wsEngine, each time I’ll remove all the imports by directly removing node_modules and install them by running npm i. Then my uws is installed in the mode of dev-dependencies.
Expected behaviour
Works properly like Node 8 or 9.
Setup
- OS: Windows 8.1 (SP1), Linux (x64
- browser: N/A
- socket.io version: 2.0.4
Other Info
I found uws is deprecated now, so in the main page of Socket.IO SHOULD’T SUPPORT THAT any more (See https://socket.io/docs/server-api/ part). And maybe there’s something code to be changed with, or change to a new lib something like uws.
See the DUPLICATED uws: https://www.npmjs.com/package/uws, the version is changing TOO RAPIDLY, not so stable.
Maybe the logic as well as socketio should be modified? (See codes at: https://github.com/socketio/engine.io/blob/6a16ea119280a02029618544d44eb515f7f2d076/lib/server.js#L107).
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 7
- Comments: 21 (1 by maintainers)
uWS has not been abandoned. The maintainer created a new repo. https://github.com/uNetworking/uWebSockets.js
@stefanovualto 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. https://github.com/mmdevries/uws
You can now use eiows, which is the published version of https://github.com/mmdevries/uws.
Again, a big thanks to @mmdevries ❤️
@marceloch2 it is not my fork (I wish it was), but @mmdevries one.
@stefanovualto unfortunatelly not yet, uWebSocket.js has different structure.
Ok, I will change my comment… Maybe we can use the official version of uWebSockets.js instead of the deprecated
uwslibrary…