Constructor
new PublicMessageRequest(message, parametersopt, targetRoomopt)
Creates a new instance of the PublicMessageRequest 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 |
|---|---|---|---|---|
message | string | The message to be sent to all the Users in the target Room. | ||
parameters | SFSObject | <optional> | null | An object containing additional custom parameters to be sent to the message recipients . |
targetRoom | SFSRoom | <optional> | null | The object representing the Room where the message should be dispatched; if null, the last Room joined by the User is used. |