-
Notifications
You must be signed in to change notification settings - Fork 49
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
Get the list of rooms? #16
Comments
Thanks for trying kraken. It's still too simple, but we have used it in production. |
@cedricfung Thanks so much for making this library! @jbenguira It is absolutely possible to get all the rooms (that have been connected to) and connected users. In router.go: above: https://github.com/MixinNetwork/kraken/blob/master/engine/router.go#L32
In rpc.go, above: https://github.com/MixinNetwork/kraken/blob/master/engine/rpc.go#L89
In rpc.go, above: https://github.com/MixinNetwork/kraken/blob/master/engine/rpc.go#L164
How I use this. I already have a data layer of all the existing rooms. What I don't have, is whether any users exist in the rooms when a user first initialises the chat application. So requesting this endpoint gives me a snapshot at that time! |
Is it possible to get the list of rooms with the REST API?
It would be great to have a JSON with the list of rooms + participants in each room
Something like this:
Also I noticed there is a quite long delay before a disconnected user is removed from the room, is this configurable?
Last point, the method "info" seems to be computed only once every 30 sec, is that also something that can be configured? if not could you give me a pointer about what part of the source code is responsible for this? :)
Thanks a lot for this great piece of OSS :)
The text was updated successfully, but these errors were encountered: