Rishabh-malhotraa / caucus

Realtime Collaborate Editor with Embedded Compiler
https://caucus.rishabhmalhotra.in/
MIT License
297 stars 70 forks source link

Language changed by one user in the room isn't reflected to other users. #26

Closed aksh-konda closed 3 years ago

aksh-konda commented 3 years ago

Describe the bug If a user in a room changes the language, this change is not being reflected in other users.

To Reproduce Steps to reproduce the behavior:

  1. Create a room.
  2. Join from another browser.
  3. Change language in one web client.
  4. This change is not sent to other web clients in the session.

Expected behavior The language selected by one user should also be passed to other web clients in the room because when they run the code it might show compilation errors as their language selection is not the same...

Rishabh-malhotraa commented 3 years ago

Thank you @Aksh-Konda , yea this seems like an oversight, it could be very easily implemented using socket-io, I'll look when I can do this because currently I'm really occupied with preparing for coding interviews and grinding leet code D: