question

rumerofficial avatar image
rumerofficial asked

How do I implement a friends presence system?

Hi there :)
How do I implement such a presence system? (online/offline)
Also I need to have a way to send game-join invite to a friend and that the friend will receive it right away and will be able to accept or decline.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

What you're looking for is a way to subscribe to events as they occur in the service - what's commonly referred to as a "PubSub" system (publish/subscribe). We have a sample here, showing how to use SignalR to accomplish that: https://github.com/PlayFab/PlayFab-Samples/tree/master/Samples/CSharp/MessagingClient

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thiago Trennepohl avatar image Thiago Trennepohl commented ·

This solution looks interesting, I just wonder how would one know when a player is offline?

are there any events/heartbeat from SignalR that could help?

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.