Contents | Index | Previous | Next


TAgentJS Object

Tango runtime proxy

Constructor

Packages.webwisdom.tango.TAgentJS.createTAgentJS(document);

Packages.webwisdom.tango.TAgentJS.createTAgentFakeJS(document,host,port);

Arguments

document A Document implementing TExit Interface.

host Host name of a Tango Test Server.

port Port number of a Tango Test Server.

Returns

The newly created Tango proxy.

Methods

addTCrossDataListenerJS()

Add a recipient of messages from different sessions.

addTDataListenerJS()

Add a recipient of the session data.

addTMasterListenerJS()

Add a recipient of master updates.

addTParticipantsListenerJS()

Add a recipient of participant updates.

crossSendJS()

Send string messages to a local instance of a different session.

exitJS()

De-register this application from Tango.

getMasterNameJS()

Retrieve the name of the master of the session.

getParticipantsNamesJS()

Retrieve names of all users in this session.

getSessionsNameJS()

Retrieve names of all sessions locally active.

getUserNameJS()

Retrieve the name of the user as logged to Tango.

removeTCrossDataListenerJS()

Stop receiving messages from other sessions.

removeTDataListenerJS()

Stop receiving private session data.

removeTMasterListenerJS()

Stop receiving master updates.

removeTParticipantsListenerJS()

Stop receiving participant updates.

selectiveSendJS()

Send string messages to selected users.

sendJS()

Send string messages.

setDbgModeJS()

Enable logging of calls to the object methods.

Description

The TAgentJS object is a Tango proxy. It represents the Tango runtime as seen by application. The methods of this object provide access to system-level information, as well as sending application's private data to peers connected to the session.

Example

Every application must register with Tango before Tango runtime recognizes it and Tango session manager displays it. Registration is implicit in creation of Tango proxy, an instance of TAgentJS. The reference on the proxy is stored in a global variable for the future use.

<script>

</script>

See Also

TServerFake Tango test server