Skip to main content
Version: 5.7.0

EndMatch

Terminate the match instance by the owner.

Method Parameters

ParameterDescription
payloadJsonpayload data sent in JSON format. It will be relayed to other connnected players.

Usage

http://localhost:3000
string payloadJson = "{\"key\":\"value\"}";

SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.RelayService.EndMatch(payloadJson, successCallback, failureCallback);