From a1017c0a75a347dfa7d9f2d4e6b82d51307d4abe Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sun, 27 Sep 2020 16:58:44 +0200 Subject: [PATCH] Updated protocol --- protocol.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/protocol.md b/protocol.md index 8ce6022..c5c2319 100644 --- a/protocol.md +++ b/protocol.md @@ -77,7 +77,22 @@ Reply format: ``` ### `msg` -5 + +Request format: + +``` +|-- 5 --|-- channelToPart(CSV) --| +``` + +* The `type` field specifies whether the message is to be sent to a user or channel + 1. `0` - this is for a **user** as the destination + 2. `1` - this is for a **channel** as the destination + +Reply format: + +``` +|-- status (1 byte) --| +``` ### `list`