summaryrefslogtreecommitdiffstats
path: root/docs/rfc.md
diff options
context:
space:
mode:
authorbt <bt@rctt.net>2026-04-19 21:32:53 +0200
committerbt <bt@rctt.net>2026-05-03 17:52:37 +0200
commiteec10d41af62fb9a93cd5fd79dcf94616701cc2a (patch)
treed72068dcc4cb1aa43c2e0a2fae8ff094d41ed9c6 /docs/rfc.md
parentc00e7dd589921e6be45918d4cd589e52e2b77036 (diff)
downloadsolec-eec10d41af62fb9a93cd5fd79dcf94616701cc2a.tar.gz
solec-eec10d41af62fb9a93cd5fd79dcf94616701cc2a.zip
[common] Basic group channels supportv0.3.0
Diffstat (limited to 'docs/rfc.md')
-rw-r--r--docs/rfc.md24
1 files changed, 22 insertions, 2 deletions
diff --git a/docs/rfc.md b/docs/rfc.md
index 69d0e29..3336cd4 100644
--- a/docs/rfc.md
+++ b/docs/rfc.md
@@ -159,9 +159,10 @@ Payload type attributes describes following characteristics:
| 0x01 | Success | SCE |
| 0x02 | Error | S |
| 0x03 | Handshake | SC |
-| 0x04 | UserAuth | C |
+| 0x04 | UserAuth | C |
| 0x05 | Message | SC |
| 0x06 | ServerAuth | S |
+| 0x07 | UserMode | C |
| 0xFF | Test | R |
### Success
@@ -180,6 +181,7 @@ Payload is always empty for this type.
|------|-----------------------------------------------------------|
| 0x01 | Client auth failed. Invalid username or password. |
| 0x02 | Not found. User or channel cannot access user or channel. |
+| 0x03 | Unauthorized. |
### Handshake
@@ -223,6 +225,24 @@ different auth method will be used.
| timestamp | send_time |
| string | message_content |
+### Usermode
+
+Usermode payload is used for changing user settings related to channels. For
+example: joining, leaving or setting privilages.
+
+| Type | Name |
+|--------|--------------|
+| string | user_address |
+| string | channel_name |
+| uint8 | mode |
+
+#### Modes
+
+| Type | Name |
+|------|------------|
+| 0x00 | none |
+| 0x01 | in_channel |
+
### Test
Test payload is used for encoder and decoders testing. Clients and servers
@@ -321,4 +341,4 @@ This is obviously insecure.
Message can be addressed to a single user or a channel.
* user@example.org
-* #channel@example.org \ No newline at end of file
+* #channel@example.org