Constructor
new KickUserRequest(userId, messageopt, delaySecondsopt)
Creates a new instance of the KickUserRequest class.
Pass the instance to the SmartFox#send method to validate and execute the request.
Pass the instance to the SmartFox#send method to validate and execute the request.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
userId | number | The id of the User to be kicked. | ||
message | string | <optional> | null | A custom message to be delivered to the User before the kicking occurs; if null, the preset message configured in the SmartFoxServer Administration Tool is used. |
delaySeconds | number | <optional> | 5 | The delay in seconds before the User is kicked after receiving the kick message. |