disconnectUser

fun disconnectUser(request: DisconnectUserRequest, callback: DisconnectUserCallback? = null)

Sends a disconnect user request through a socket connection.

Parameters

request

identifies the user to be disconnected and also related reason

callback

callback interface called on the request rejection by the server. Note: due to the IVS protocol limitation, this method can only indicate request rejection(onRejected method) but never the request acceptance(onSuccess). In case of success, no callback method is called.

Throws

when room is not connected

when provided request fails to serialise