-
Notifications
You must be signed in to change notification settings - Fork 12
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 userpresence #68
base: main
Are you sure you want to change the base?
Add userpresence #68
Conversation
Azure Static Web Apps: Your stage site is ready! Visit it here: https://gentle-dune-0fec87f03-68.westeurope.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://gentle-dune-0fec87f03-68.westeurope.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://gentle-dune-0fec87f03-68.westeurope.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://gentle-dune-0fec87f03-68.westeurope.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://gentle-dune-0fec87f03-68.westeurope.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://gentle-dune-0fec87f03-68.westeurope.azurestaticapps.net |
Description
This feature introduces the back-end implementation for a online/offline indicator for a user profile.
UserPresenceMessage
message to theuser-presence-<userId>
Ably channel.user-presence-*
channels and calls theapi/presence-update
function.api/presence-update
HTTPTrigger function:event-integrations/presence-publish
TimerTrigger function:ChannelPresenceMessage[]
to theutility-channel
Ably channel.I duplicated some code from
api/common
toevent-integrations/common
since the latter now reads from CosmosDB.Not done yet:
utility-channel
, subscribing to thechannel-presence
messages and handling the receiving these messages (updating the UI).PR Checklist
Please use this checklist to track the completeness of your PR. We're always happy to assist you in completing these steps!