setSectorFunction


General

setSectorFunction setups a service, which lets you bind a function to a sector (sector can be an unique server or similiar) to return a singleton result.


Usage

Client:setSectorFunction(<number> interval, <string> sectorName, (string) functionName, <function> callback, <boolean> returnEnabled)
Returns: <Connection> sectorConnection

The callback function should use these arguments:
<string> functionName, <ANY> data

The function is called by the sendSector.

It is a singleton function. It won't run on all the server - just a single one to avoid function event fired multiple times.


Limitations

See getSector.


Example

See sendSector.

Back to top