Constructor
new ObjectMessageRequest(obj, targetRoomopt, recipientsopt)
Creates a new instance of the ObjectMessageRequest 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 |
|---|---|---|---|---|
obj | SFSObject | An object containing custom parameters to be sent to the 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. |
recipients | Array.<SFSUser> | <optional> | null | A collection of objects representing the message recipients; if null or empty, the message is sent to all Users in the target Room, except the sender itself. |