send Message
Send a message on behalf of the user, programmatically.
Lets the host app drive the conversation as if the user typed and tapped send. The SDK renders the bubble locally with a temporary id and reconciles it with the server-assigned id when the POST response returns — do not also display the message yourself, and do not add it to any external chat log you maintain.
Behaviour:
Trims whitespace; an empty/whitespace-only message completes exceptionally with
KindlySDKError.InvalidData.Completes exceptionally with
KindlySDKError.ChatNotConnectedif called before the chat is connected. ObserveKindlySDK.stateforisConnectedfirst.Per-call newContext overrides any context previously staged via setNewContext.
Return
A Deferred that completes with the reconciled MessageChat (carrying the server-assigned id and timestamp), or completes exceptionally on failure.
Parameters
The message text to send. Whitespace is trimmed.
Optional per-call context attached to this message only.