setSharedEvent


General

setSharedEvent is a method defining a shared service event. It is supposed to receive requests sent across all games.


Usage

Client:setSharedEvent(<number> interval, <string> sharedName, <function> callback)
Returns: <Connection> sharedConnection

The callback function should use these arguments:
<string> name, <ANY> data, <number> date

The event is fired with sendShared.

It is a shared service - it will run on every server connected to the token.


Limitations

See getActionEvent.


Example

See sendShared.

Back to top