-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Socket.IO with uWebSockets: "initial_headers" event not being emitted #5300
Comments
only 'polling' requests are emitted by initial_headers event, downgrading uwebsocket to v20.30.0 or socket.io to 4.5.0 does not worked. |
I could indeed reproduce the issue. The test here is disabled for the engine based on uWebSockets: socket.io/packages/engine.io/test/server.js Lines 3600 to 3606 in 72d61da
For the default engine, we use the socket.io/packages/engine.io/lib/server.ts Lines 690 to 707 in 72d61da
|
Describe the bug
Seems like the "initial_headers" (and also "headers") event is never emitted when using Socket.IO with uWebSockets. Need a way to attach headers to the http handshake response.
To Reproduce
socket.io v4.8.1
uWebSockets.js v20.51.0
Server
Client
Expected behavior
Expecting console to log "initial headers event emitted", but only getting "connected" and "Server listening on port 3000".
The text was updated successfully, but these errors were encountered: