SavandBros / whisper

Whisper chat for me, myself and I
GNU General Public License v3.0
5 stars 0 forks source link

List of users in a room #11

Closed AmirSavand closed 6 years ago

Alir3z4 commented 6 years ago

This should come via the websocket itself. Will make it happen

Alir3z4 commented 6 years ago

Ok, let's do this via the websocket. This is going to be fun!

AmirSavand commented 6 years ago

Wooooo

Alir3z4 commented 6 years ago

Ok, this is way complicated that I thought. I need a way to keep track of active connections.

Resource:

AmirSavand commented 6 years ago

Find a way! Good luck!

Alir3z4 commented 6 years ago

Pull request #32 is there to make this happen. The command "room_users" is what you're looking for.

Pass {"command": "room_users", "room": roomId} and it will respond back with

https://github.com/SavandBros/whisper/blob/f416fd472750eb6c0948a9a2004873e125abb15e/chat/tests/test_chat_consumer.py#L83-L91

AmirSavand commented 6 years ago

I'll do it once the pull is merged.

Alir3z4 commented 6 years ago

Cool. I need to make some changes before merging it in.

On Thu, May 24, 2018 at 3:23 PM Amir Savand notifications@github.com wrote:

I'll do it once the pull is merged.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/SavandBros/whisper/issues/11#issuecomment-391694483, or mute the thread https://github.com/notifications/unsubscribe-auth/AAkFCTmjHJhn8_xnn-0DQIOfID0Yt0K8ks5t1qZFgaJpZM4UGMnk .