Skip to content
Mikulas Florek edited this page Nov 29, 2020 · 6 revisions

Caller

Connection must be initialized with Low-level API first

Network.call(connection, "function_name", "arg0_value")

The third argument is name of the function. It has to be in table Network.RPCFunctions. There can by any number of arguments after the 3rd argument.

Network.call(connection, "function_with_4_args", "arg0_value", 1234, true, "arg4_value")

Only strings, numbers and booleans are supported.

Callee

Network.RPCFunctions = {
	function_name = function(arg)
		Engine.logError("RPC " .. tostring(arg))
	end
}
Clone this wiki locally