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

See action POST.


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