diff --git a/protocol-spec/base.md b/protocol-spec/base.md new file mode 100644 index 0000000..811d01a --- /dev/null +++ b/protocol-spec/base.md @@ -0,0 +1,15 @@ +# Base + +## Entity ID +* Room alias: `#:` +* Username: `@@` +* User ID with MSISDN (Mobile Station International Subscriber Directory Number): `%:` +* User ID with Email: `^_at_:` +* Message ID: `&:` +* Room ID: `!@` +* Single server-part: `` + +**Server-part (hostname)** - `IPv4 / [IPv6] / dns-domain:`. +**Username/Room alias/RoomID** - MUST NOT be empty, and MUST contain only the characters `a-z`, `0-9`, `.`, `_`, `=`, `-`, and `/`. + +RoomID SHOULD be UUID identifier. \ No newline at end of file