When connected to a
synchronization service, it is possible to send a message to the service using the function
syncmessage or the action
Sync.sendMessage. The message is identified by a name and it can have an optional value with additional details.
Typically, a client will send a message with some information to log, or with some information that informs an expected response.
On
CSWeb, messages are stored in the
cspro_messages database table. By default, CSWeb returns an undefined response, but users can modify the CSWeb source file
MessagesController.php to customize what value is returned.
The file-based synchronization services (
Dropbox,
FTP, and
Local Files) store the message in a file in the directory
/CSPro/messages/ and return an undefined response.
When sending a message using Bluetooth, if
OnSyncMessage is not defined in the server's code, both the server and client devices will display an error message.