Skip to main content
Version: 5.7.0

RemoveMember

Evicts the specified user from the specified lobby. The caller must be the owner of the lobby.

ServiceOperation
lobbyREMOVE_MEMBER

Method Parameters

ParameterDescription
lobbyIdId of chosen lobby.
connectionIDRTT connection id of specified member to be removed from the lobby.

Usage

http://localhost:3000
string lobbyId = "55555:4v4:19";
string cxId = "55555:aaa-bbb-ccc-ddd:asdfjkl";
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.LobbyService.RemoveMember(lobbyId, cxId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {}
}
Common Error Code

Status Codes

CodeNameDescription
40601RTT_NOT_ENABLEDRTT must be enabled for this feature