sendSector


General

sendSector sends a singleton request to the sector service (for example other place) and returns the requets information.


Usage

Client:sendSector(<string> sectorName, <string> functionName, (ANY) data)
Returns: <SectorRequest> sectorRequest

The callback can be specified with setSectorFunction.


Limitations

See action POST.


Example

Client:setSectorFunction(5, "TrainingGame", "GetData", function(data)
	return {
		success = false;
		message = "Method not setupped yet";
		userId = data.userId;
	}
end, true)

-- CALLING

print(game.HttpService:JSONEncode(
	Client:sendSector("TrainingGame", "GetData", {userId = 21735007}):getResult()
))

Back to top