From 3c95917352dfd8ae43768003207e1bb1e80a7376 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sat, 4 Jul 2020 14:40:38 +0200 Subject: Send msgids in 'send' response and '_push message' --- protocol.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'protocol.md') diff --git a/protocol.md b/protocol.md index 2d7ec63..d4c544b 100644 --- a/protocol.md +++ b/protocol.md @@ -128,7 +128,9 @@ ranges until the end of the line). `send` message was sent from). Also marks the current session as active. - - Returns `ok` or `error`. + + The returned `number` response contains the message id of the message sent. + - Returns `number` or `error`. - ` history ` - Requests the last `` messages in the given room, if the client is a member of the room. In the `history` response, `` will be at most @@ -177,7 +179,7 @@ are listed below. (excluding user X) of all rooms user X is a member of receive a `_push online` push message stating that `` (user X) is now online with `` sessions. -- `_push message ` +- `_push message ` - Sent to all sessions of all members of a room in which a message is posted, except the session that sent the message. - `_push invite ` -- cgit v1.2.3-70-g09d2