Skip to content

SocketId sometimes changes for a websocket connection/user #446

Description

@ralphiee22

Description
Sometimes the socketId of a user changes within the context of our logs.
Let it be noted that a new socketId should be generated for every new websocket connection that is coming in.
This is not causing any issues to the best of our knowledge, but it was an interesting observation.
Just wondering if we have any ideas why this could happen?

Steps to reproduce the bug
Not reproducible at the moment.

Expected behavior
socketId should not change for a websocket connection.

Screenshot, video, or GIF
In the screenshot, we can see the new user who connected to the document has their socketId attributed to a change event for another user. Websocket key is our own identifier for tracking websocket connections (so we would have expected them to match in comparison to the socketId).
203121993-0421ba48-c34f-49e6-8e6e-ba35891935e6

Additional context
We have multiple instances of this socketId flipping in our logs for this case.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions