-
Notifications
You must be signed in to change notification settings - Fork 568
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
Question: new uWebsocket.js #578
Comments
I guess if we don't want a lot of changes in eio, it's necessary to create wrappers:
|
You can also take a look at eiows, which is a fork of the Instructions here: https://socket.io/docs/server-installation/#Other-WebSocket-server-implementations |
Update: I'm working on this, binding to a |
@darrachequesne any success? I noticed that there are no prebuilt binaries for node 16:
uWebsocket.js depends on uws.js, which contains the actual binaries, which have to be compatible with installed node ABI version (process.versions.modules) which is version 93 for node 16. |
|
@darrachequesne you will probably appreciate the work of https://github.com/kartikk221/hyper-express |
```js const { App } = require("uWebSockets.js"); const { uServer } = require("engine.io"); const app = new App(); const server = new uServer(); server.attach(app); app.listen(3000); ``` Reference: https://github.com/uNetworking/uWebSockets.js Related: #578
Added in const { App } = require("uWebSockets.js");
const { uServer } = require("engine.io");
const app = new App();
const server = new uServer();
server.attach(app);
app.listen(3000, () => {}); I plan to merge the changes in Socket.IO, so we can benefit from the publish functionality. Feedback is welcome! |
Usage: ```js const { App } = require("uWebSockets.js"); const { Server } = require("socket.io"); const app = new App(); const server = new Server(); server.attachApp(app); app.listen(3000); ``` The Adapter prototype is updated so we can benefit from the publish functionality of uWebSockets.js, so this will apply to all adapters extending the default adapter. Reference: https://github.com/uNetworking/uWebSockets.js Related: - #3601 - socketio/engine.io#578
Usage: ```js const { App } = require("uWebSockets.js"); const { Server } = require("socket.io"); const app = new App(); const server = new Server(); server.attachApp(app); app.listen(3000); ``` The Adapter prototype is updated so we can benefit from the publish functionality of uWebSockets.js, so this will apply to all adapters extending the default adapter. Reference: https://github.com/uNetworking/uWebSockets.js Related: - socketio#3601 - socketio/engine.io#578
Is it possible without big changes to use new maintained uWebsocket.js (link below) for polling & websocket transports? I'd like to learn from engine.io code and start coding support for it.
Or should I start from null and create new lib.
https://github.com/uNetworking/uWebSockets.js
uWebsocket.js has support for websocket & http handling as well and is much faster and lighter than ws and I guess has same speed as uws (same author) or even faster because of live maintaining
The text was updated successfully, but these errors were encountered: