diff options
| author | Tom Smeding <tom.smeding@gmail.com> | 2020-06-21 12:16:24 +0200 | 
|---|---|---|
| committer | Tom Smeding <tom.smeding@gmail.com> | 2020-06-21 12:16:24 +0200 | 
| commit | 93e5170645d82a074746da11481304d42fb215fd (patch) | |
| tree | 8d4aecd589d7d0bddde929930c957513f4e931c4 | |
| parent | bc3ce98673a961bf6886efe1f63345a80d8a9f3b (diff) | |
Protocol fixes
Thanks @lieuwex
| -rw-r--r-- | protocol.md | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/protocol.md b/protocol.md index aa6de82..4094b79 100644 --- a/protocol.md +++ b/protocol.md @@ -39,6 +39,8 @@ A _response_ from the server will be in one of the following forms:  - `<tag> error <message:string...>`    - The client's message was successfully parsed, but handling resulted in an      error described in the message. +- `<tag> name <name:word>` +  - A name was returned, probably the name of the room in `create_room`.  - `<tag> list <count:i64> words...`    - A list of words was returned. The number of words returned is given in      `<count>`; the words themselves are space-separated further arguments to @@ -75,7 +77,8 @@ ranges until the end of the line).    - Lists all rooms the user is a member of.    - Returns `list` or `error`.  - `<tag> list_members <roomname:word>` -  - Lists all members of the given room, if the user is also a member. +  - Lists all members of the given room, if the user is also a member. (This +    includes the user themselves.)    - Returns `list` or `error`.  - `<tag> create_room`    - Creates a new room, and enters the room. The id of the room is returned to | 
