Child pages
  • Maintenance Mode

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Function

isInMaintenanceMode

Description

Returns true if the server is in maintenance mode, false otherwise. Syntax

Example

No Format
nopaneltrue
if (%%elementName%%.isInMaintenanceMode())
	application.output("Server is in maintenance mode.");
else
	application.output("Server is not in maintenance mode.");

...

Function

getConnectedClients

Description

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

Example

No Format
nopaneltrue
var clients = %%elementName%%.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() + "'.");

...

Function

shutDownAllClients

Description

Shuts down all connected clients.
Syntax

Example

No Format
nopaneltrue
%%elementName%%.shutDownAllClients();

...