Skip to content
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

bug fix : ws server in excalidraw project in ws index.ts #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SuryaS1729
Copy link

@SuryaS1729 SuryaS1729 commented Feb 4, 2025

should'nt this

user.rooms = user?.rooms.filter(x => x === parsedData.room);

be this

user.rooms=user?.rooms.filter(x=>x!==parsedData.roomId)

this way it wouldn't break when the user joins multiple rooms

should'nt this be

 user.rooms = user?.rooms.filter(x => x === parsedData.room);

this

 user.rooms=user?.rooms.filter(x=>x!==parsedData.roomId)


this way it wouldn't break when the user joins multiple rooms
@SuryaS1729 SuryaS1729 changed the title Update index.ts a fix on the ws server in excalidraw project in ws index.ts Feb 4, 2025
@SuryaS1729 SuryaS1729 changed the title a fix on the ws server in excalidraw project in ws index.ts bug fix : ws server in excalidraw project in ws index.ts Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant