Device Monitoring Studio - PC Connections Data Monitoring Logging and Analyzing Software
First overload is used to bind new handler to the event. It returns a numeric eventId which then may be passed to second overload to unbind a handler.
Subscribing to connected and disconnected events:
remote.connected(serverName=>alert("Connected: " + serverName + ". Total connections: " + remote.connections.length)); remote.disconnected(serverName=>alert("Disconnected: " + serverName + ". Total connections: " + remote.connections.length));