wdlsvnit / Omeclone

A clone of omegle.com
104 stars 50 forks source link

Connect a user to a random one from the total users rather than connecting sequentially. #101

Open lunaticmonk opened 6 years ago

lunaticmonk commented 6 years ago

Currently, we are connecting one user to next user in queue which should not be the case. Things to be done in this issue:

  1. Connect the new user to the random ones.
  2. Remove the ones who are paired up from the list of online users.

Please ask below if you have any doubts regarding this issue.

AdityaHirapara commented 6 years ago

In 2nd point, if we remove paired users from list, then how can we get actual no of online users to display on home page? @sumedh123

lunaticmonk commented 6 years ago

@AdityaHirapara then we can have a kind of flag indicating the room has filled and if the third user comes in, he should not be added to that room.