Constructor
new ChangeRoomPasswordStateRequest(room, newPassword)
Creates a new instance of the ChangeRoomPasswordStateRequest 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 | Description |
|---|---|---|
room | SFSRoom | The object representing the Room whose password should be changed. |
newPassword | string | The new password of the Room; an empty string can be passed to remove the Room's password. |