# Active client array

**URL:** <https://forum.servoy.com/t/active-client-array/4866>\
**Category:** Classic Servoy\
**Created:** [October 10, 2005, 11:55pm UTC](https://forum.servoy.com/t/active-client-array/4866 "2005-10-10T23:55:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morley](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Morley](https://forum.servoy.com/u/Morley)\
**Post date:** [October 10, 2005, 11:55pm UTC](https://forum.servoy.com/t/active-client-array/4866/1 "2005-10-10T23:55:01Z")

</div>

Is it possible for a solution to query Servoy Server for an array of current active clients?

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [October 11, 2005, 8:52am UTC](https://forum.servoy.com/t/active-client-array/4866/2 "2005-10-11T08:52:43Z")

</div>

Yes, you can do this by using the functions: application.addClientInfo & application.getClientCountForInfo

see example data:

```auto
//Add additional info to a client which can be viewed in the admin page
application.addClientInfo('alias sick fish');

//Get a count for all clients having the same additional info line
var count = application.getClientCountForInfo('alias sick fish');

```

All thanks goes to Stef! He paid for this function! ![:)]( "Smile")

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [October 11, 2005, 9:07am UTC](https://forum.servoy.com/t/active-client-array/4866/3 "2005-10-11T09:07:19Z")

</div>

But that will give you only the COUNT for a certain info. So if Morley adds for example the user name as info, he will have to loop over all users in the security, ask for the count for a certain user name and if that is 1, he knows the user is online. This is a bit unhandy and doesn’t give you for example the possibility of getting the IP address of a certain user, which would be very useful for the UDP plugin…

I have posted this feature request: [http://forum.servoy.com/viewtopic.php?t=5145](http://forum.servoy.com/viewtopic.php?t=5145)

So if you add your vote, we might be getting access to something more convenient. ![:lol:]( "Laughing")

Patrick

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [October 11, 2005, 9:12am UTC](https://forum.servoy.com/t/active-client-array/4866/4 "2005-10-11T09:12:41Z")

</div>

Yeah sorry! You can only count with that, indeed! not retrieving an array.
