diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-07-04 14:40:38 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-07-04 14:40:38 +0200 |
commit | 3c95917352dfd8ae43768003207e1bb1e80a7376 (patch) | |
tree | aff622cb75266898baef8f7eba721b44448e9477 /protocol.md | |
parent | 191fc6cf55df805d36555a26177da0eac65b6261 (diff) |
Send msgids in 'send' response and '_push message'
Diffstat (limited to 'protocol.md')
-rw-r--r-- | protocol.md | 6 |
1 files changed, 4 insertions, 2 deletions
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`. - `<tag> history <roomname:word> <number:i64>` - Requests the last `<number>` messages in the given room, if the client is a member of the room. In the `history` response, `<count>` 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>` (user X) is now online with `<numonline>` sessions. -- `_push message <roomname:word> <user:word> <timestamp:i64> <message:string...>` +- `_push message <roomname:word> <user:word> <timestamp:i64> <msgid:i64> <message:string...>` - 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 <roomname:word>` |