You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're sometimes seeing a very rare upgrade error while using uWebSockets.js (uws);
TypeError: Cannot read properties of undefined (reading 'forEach')
at subscribe (/node_modules/socket.io/dist/uws.js:87:11)
at Socket.<anonymous> (/node_modules/socket.io/dist/uws.js:28:17)
at Socket.emit (node:events:402:35)
at WebSocket.onPacket (/node_modules/engine.io/build/socket.js:214:22)
at WebSocket.emit (node:events:390:28)
at WebSocket.onPacket (/node_modules/engine.io/build/transport.js:92:14)
at WebSocket.onData (/node_modules/engine.io/build/transport.js:101:14)
at message (/node_modules/engine.io/build/userver.js:56:30)"
This should fix a rare case where the Engine.IO connection was upgraded
to WebSocket while the Socket.IO socket was disconnected, which would
result in the following exception:
> TypeError: Cannot read properties of undefined (reading 'forEach')
> at subscribe (/node_modules/socket.io/dist/uws.js:87:11)
> at Socket.<anonymous> (/node_modules/socket.io/dist/uws.js:28:17)
> at Socket.emit (node:events:402:35)
> at WebSocket.onPacket (/node_modules/engine.io/build/socket.js:214:22)
> at WebSocket.emit (node:events:390:28)
> at WebSocket.onPacket (/node_modules/engine.io/build/transport.js:92:14)
> at WebSocket.onData (/node_modules/engine.io/build/transport.js:101:14)
> at message (/node_modules/engine.io/build/userver.js:56:30)
Related: #4443
This should fix a rare case where the Engine.IO connection was upgraded
to WebSocket while the Socket.IO socket was disconnected, which would
result in the following exception:
> TypeError: Cannot read properties of undefined (reading 'forEach')
> at subscribe (/node_modules/socket.io/dist/uws.js:87:11)
> at Socket.<anonymous> (/node_modules/socket.io/dist/uws.js:28:17)
> at Socket.emit (node:events:402:35)
> at WebSocket.onPacket (/node_modules/engine.io/build/socket.js:214:22)
> at WebSocket.emit (node:events:390:28)
> at WebSocket.onPacket (/node_modules/engine.io/build/transport.js:92:14)
> at WebSocket.onData (/node_modules/engine.io/build/transport.js:101:14)
> at message (/node_modules/engine.io/build/userver.js:56:30)
Related: socketio#4443
Describe the bug
We're sometimes seeing a very rare upgrade error while using
uWebSockets.js
(uws);Stack trace mapped to source
It seems to be when the client upgrades but is not in any rooms.
Expected behavior
Upgrade a connection without causing an error trying to subscribe to an omitted rooms argument.
Platform:
The text was updated successfully, but these errors were encountered: