DisconnectUserRequest

data class DisconnectUserRequest @JvmOverloads constructor(val userId: String, val reason: String? = null)

Represents a request to disconnect another user in the chat room.

Sending this request to a chat room requires DISCONNECT_USER capability in chat token. Otherwise server will respond with error code 403.

Parameters

userId

Unique identifier of the user to be disconnected

reason

Reason for performing disconnect user action

Constructors

Link copied to clipboard
fun DisconnectUserRequest(userId: String, reason: String? = null)

Constructs the request instance

Properties

Link copied to clipboard
val reason: String? = null

Reason for performing disconnect user action

Link copied to clipboard
val requestId: String

Client-generated unique identifier (UUID) that will be used by the SDK to match response or error for given request.

Link copied to clipboard
val userId: String

Unique identifier of the user to be disconnected