I'm trying to implement a Server to Server API solution for my rooms wherein my server receives a notification when the number of room participants drops from 2 participants to 1 participant. What would be the recommended approach?
Views
Replies
Total Likes
You can subscribe to the UserManager collection. You will get a receiveItem message when someone enters and a receiveItemRetraction message when someone exits.
Views
Replies
Total Likes
So I must be doing something wrong. Following the
documentation at
it says that "Items in the CollectionNode panel map to the API's pod components". I must not have anything in the API's pod components, because nothing is in the CollectionNodes panel of my room even when I have my live screensharing application running. How do I add these API pod components, or at least where is the documentation for how to do so?
Views
Replies
Total Likes
This is a little confusing - there is a UserManager collection node which
we don't expose to the Room Console (mostly because we don't want people
messing with it and breaking their rooms). Collection name is " UserManager"
and node name is "UserList". (You can see all this in the UserManager.as
client source).
hope that helps
nigel
Views
Replies
Total Likes
Does anyone know of an example for what I am trying to do?
Views
Replies
Total Likes
Hi,
So by looking at UserManager would be similar to looking at "MyCustomCollection" and UserList would be like "itemNode"?
If so, if I create custom fields for users, could I have the server 2 server api update a single field for a user? Or would the entire node have to be updated?
thanks.
...russ
Views
Replies
Total Likes
Looks like custom fields are "nodes" on UserManager so you can just do a publishItem to a node with the name of your custom field.
Views
Replies
Total Likes
So, I am not sure of what is that you are trying to do
If you want to receive user related events you don't need to set up anything in your Flex application. All you need is a server application that calls registerHook, then subscribe to UserManager collection for the room you are interested in and implement receiveItem for collection=UserManager, node=UserList.
There are examples of server to server notifications in the SDK for all (or most) of the languages.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies