Skip to content

Online Presence Tracking - #32

Merged
multimokia merged 6 commits into
mainfrom
FROs-Online-Presence
Mar 8, 2023
Merged

Online Presence Tracking#32
multimokia merged 6 commits into
mainfrom
FROs-Online-Presence

Conversation

@multimokia

Copy link
Copy Markdown
Contributor

Online Presence Tracking

This PR introduces online presence, to indicate if a user is online or not using the Supabase Presence API

API Changes

  • Adds a new item to ChatCtx - onlinePresenceRef, which is a RealtimeChannel listening on the online-users freq
    • Also adds useOnlinePresenceRef as a hook which returns the channel from the context
  • Adds the following new services:
    • getServerMemberCount - Returns the number of members in a server
    • getUsersInServer - Returns the profile objects of all users in the server

Testing:

  • Verify presence works
  • Verify online counts/member counts for the server bar works

@multimokia multimokia added the enhancement New feature or request label Mar 7, 2023
@multimokia multimokia added this to the WEEK 13 FINAL SUBMISSION milestone Mar 7, 2023
@multimokia
multimokia requested a review from Stan-l-e-y March 7, 2023 22:22
@multimokia multimokia mentioned this pull request Mar 8, 2023
@multimokia
multimokia added this pull request to the merge queue Mar 8, 2023
Merged via the queue into main with commit a42f688 Mar 8, 2023
@multimokia
multimokia deleted the FROs-Online-Presence branch March 8, 2023 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

2 participants