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
Describe the bug socket.id can be undefined according to the documentation (until connect event is triggered). But the Socket type does not mark it as possibly undefined.
To Reproduce
Check the documentation:
Check the code:
Describe the bug
socket.id
can be undefined according to the documentation (until connect event is triggered). But theSocket
type does not mark it as possibly undefined.To Reproduce
Check the documentation:
Check the code:
socket.io/lib/socket.ts
Line 192 in 8c9ebc3
And:
https://github.com/socketio/socket.io-adapter/blob/28f60b880ad04ff4b48ade0cd529f1970643604f/lib/index.ts#L10
Socket.IO client version:
4.7.2
Expected behavior
Either the Socket or SocketId type should allow undefined values or the documentation should be clarified.
The text was updated successfully, but these errors were encountered: