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

Chat room list functionality #43

Open
4 tasks
HectorAgudelo opened this issue Apr 1, 2023 · 1 comment
Open
4 tasks

Chat room list functionality #43

HectorAgudelo opened this issue Apr 1, 2023 · 1 comment
Assignees

Comments

@HectorAgudelo
Copy link
Contributor

  • add name of room
  • add number of users
  • highlight current room
  • display previews 10 messages from specific room
@alekzandriia
Copy link
Contributor

Progress update:

🟠 So far I've been able to render the list of rooms on the client (sorta). The issue I've noticed is that it does not render immediately when the page first loads. But if I make a change to the code (like adding a comment) which causes the server to "restart due to changes" then it shows up... I'm not yet sure why this is.

🟢 I'm able to switch between rooms when the user clicks on the "join" button.

🔴 I can't seem to figure out how to send messages specifically to a room. I thought it would be as simple as:

io.to(inputMsg.room).emit('received-chat', inputMsg);

Which is what the docs suggest ... but that currently isn't working.

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

When branches are created from issues, their pull requests are automatically linked.

3 participants