sendShared


General

sendShared sends a shared service request to every server connected to the token.


Usage

Client:sendShared(<string> sharedName, (ANY) data)
Returns: <boolean> success

The callback can be specified with setSharedEvent.

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


Limitations

Upgrade Type Limit ( per 1s )
STANDARD (0) 15
PREMIUM (1) 30
ELITE (2) 30

The limits are shared with other action services.


Example

Client:setSharedEvent(5, "ShutdownEvent", function(name, data, date)
	print("Shutdown attempted")
	print("Name: ", name)
	print("Data: ", data)
	print("Date: ", date)
end)

Client:sendShared("ShutdownEvent", true)

Back to top