Friends list sync from your website #43
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: apps/BareRTC#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If you use BareRTC with a social networking website, it would be nice if friend list information could be synced to the chat room. It should be scalable though in case a given user has 10,000 friends on your site, so methods of having your site sync over 10,000 usernames before they join the chat room (the way the blocklist sync endpoint works) may not be a good fit.
If there are only ever a ~couple hundred chatters online at any given time, a more streamlined system to query friendships among only that subset of users may be good. It could be handled by a webhook URL to your site that the BareRTC server can call periodically and/or cache.
The webhook could be a POST request coming from BareRTC where it sends a list of users currently online:
And it could expect a JSON response containing friendship sets between those users, like:
Open questions: