socket.io
socket.io copied to clipboard
Latest uWs not working
Error: Using uWS.HttpRequest / uWS.Http3Request past its request handler return is forbidden (it is stack allocated). at callback (/app/node_modules/.pnpm/[email protected]/node_modules/engine.io/build/userver.js:157:20)
this is the issue,
transport = await this.handshake(
req._query.transport,
req,
(errorCode, errorContext) =>
this.abortRequest(res, errorCode, errorContext)
);
if (!transport) {
return;
}
you can not await and use httprequest after that
some light on this:
https://github.com/uNetworking/uWebSockets.js/issues/907 https://github.com/kartikk221/hyper-express/issues/170
we already have see what is the issue on this, the new alien mode is not allowing you to access the getHeader function, so you should cache them for later uses.
there is other issues in here about this mode.
pull request:
https://github.com/socketio/engine.io/pull/681
I'm looking into this.
I think this can be closed now. Please reopen if needed.