cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2116
Views
0
Helpful
5
Replies

Receiving presence status for all people in an organisation

thomc
Level 1
Level 1

Hey there,
We like to build a wallboard like application to show all people within a webex teams organisation. Therefore we need to somehow subscribe to a presence websocket, to keep the state of each person updated.
I couldn't find any documentation on how to gather the presence information of all people within an organisation. As we don't use node.js nor java, there's no official SDK we could use. C# would be helpful but in the end, we just need a method to get notified, as soon as a presence state of a person in the organisation changes.
Are there any ideas how to do this in a "manual" way?
Are there official websockets to connect to? and are there some documentation on this?
It's possible to reverse engineer the sample projects from the github repositories but it would be easier, if there is an official way to make progress on this.
Thanks

1 Accepted Solution

Thanks for the quick answer.
Polling isn't actually an option.
So you mean there's no official websocket, because there must be one when I look at the sample code provided for node.js.
But thanks anyway
Best regards
Christian

View solution in original post

5 Replies 5

Janos Benyovszki
Cisco Employee
Cisco Employee

@thomc thanks. Apparently the old internal presence plugin in the JS SDK is now public: https://github.com/webex/webex-js-sdk/blob/next/packages/%40webex/plugin-presence/src/presence.ts . Sorry, I was still under the impression that it is internal as it was for many years, that's why I did not recommend it. But now that it's public, feel free to use it.

It can be used for getting updates on user statuses, but it's only designed for one user at a time. Setting up a listener for every user in your org might be too much, if done individually, so what I could recommend is maybe showing / pinning certain users (you could limit it to a certain number, like 5-10) and create presence websockets for those users in your app.

Janos Benyovszki
Cisco Employee
Cisco Employee

@thomc not aware of an official websocket for presence, but if you post here the sample code you mentioned, I can see if I find something. Thanks

Hey Janos,
This is what I've found so far:
https://webex.github.io/webex-js-sdk/samples/browser-plugin-presence/
There are some other examples as well but I guess this is the most promising.
Best Regards
Christian

Janos Benyovszki
Cisco Employee
Cisco Employee

@thomc we do not have a webhook or websocket for presence status, but you could query the people API for the same in a regular interval https://developer.webex.com/docs/api/v1/people/list-people . 

Thanks for the quick answer.
Polling isn't actually an option.
So you mean there's no official websocket, because there must be one when I look at the sample code provided for node.js.
But thanks anyway
Best regards
Christian