The "/chat-send" page:
This page receives (via XHR) a new chat-message and/or a new file to be entered into the chat history.
On success it responds with an empty response: the new message should be fetched via /chat-poll. On error, e.g. login expiry, it emits a JSON response in the same form as described for /chat-poll errors, but as a standalone object instead of a list of objects.
Requests to this page should be POST, not GET. POST parameters include:
- The (Markdown) text of the message to be sent
- The content of the file attachment
- ISO-8601 formatted date-time string showing the local time of the sender.
At least one of the "msg" or "file" POST parameters must be provided.