Closed ruscoder closed 5 years ago
Hello !
Can you give more information about your problem ? Are you talking about ClientState ? Please give a snippet of your code to help you to answer to your question :)
Sincerely Florient
@Linoa65
I'm talking about UserStatus (messaging module in the messaging
branch). We can subscribe to user status changing using subscribe
method.
const messaging = Voximplant.getMessenger();
messaging.subscribe(['userid@my.app']);
and then we will receive Voximplant.Messaging.MessengerEventTypes.SetStatus
event when the user userid@my.app
changes his status using setStatus
method.
messaging.setStatus(true);
The question is how to get the initial user status when I connect to the VI first time?
Hello!
Currently Voximplant does not store the user status, so we do not have the API to get the current status of a user.
The best way to implement the presence functionality is to send the status update of each user periodically, i.e. call messenger.setStatus() API on each client. The recommended periodicity of setStatus API calls is 60 seconds.
Best regards, Yulia Grigorieva
Hello!
Today we have released Voximplant React Native SDK 1.6.0 with Messaging API.
'messaging' branch will be completely removed from the repo on May 6th, 2019.
Best regards, Yulia Grigorieva
Hello!
How to get users statuses at the moment when I subscribe to users statuses changes?