The maintenance plugin

The maintenance plugin is a new plugin available since the 4.2 version of Servoy. It allows you to automatically perform administrative tasks, like:

Function

getConnectedClients

Description

Returns an array of IClientInformation elements describing the clients connected to the server.
Syntax
Parameters

Example

var clients = plugins.maintenance.getConnectedClients();
application.output("There are " + clients.length + " connected clients.");
for (var i = 0; i < clients.length; i++)
	application.output("Client has clientId '" + clients[i].getClientId() + "' and has connected from host '" + clients[i].getHostAddress() + "'.");