-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add a client-to-server-only call to list all the currently-connected users #57
Comments
Inside |
There are certain flaws to this approach here.
|
Will this approach work? |
Since there is already a map |
But every user will already be associated with a chatroomID, so I feel we don't need any extra parameter with the request. |
Ya that should work. |
@t0xic0der can i work on this? |
I'm not sure if I understand what you are trying to say here @gitarthasarma. 😅 Could you please elaborate?
Wow yes. That approach would very likely work.
That is true. We know from which chatroom, the Apologies for the delay in my responses. I am reaching out late beyond the office hours so it was some time before I could come to my desk for work. |
@t0xic0der actually I was trying to figure out where the text msgs sent by the users inside chatrooms were handled inside 'cnew.py'. Inside there we can create a special case for user input '/list', there we will send a request to the server with the identity of the user attached(like the chatroomid). Inside the 'main.py' we can handle this request and we already have the 'getallus()' function which does all the hassle of finding out all users belonging to chatroomid. So using that we can return the list. But I am not so familiar with asyncio and websockets in python. So I don't know whether this is actually possible or not. |
If I am a user and I wish to know the list of folks currently connected to the chatroom then I should have a convenient command called
/list
to get the list of everyone connected at the moment.The text was updated successfully, but these errors were encountered: