hs2: change msgpack format and fixes

This commit is contained in:
Green Sky
2024-12-09 23:38:07 +01:00
parent 930c829031
commit 6ad2905e07
3 changed files with 15 additions and 28 deletions

View File

@@ -91,8 +91,9 @@ Msgpack array of messages.
- ts | 64bit deciseconds
- ppk | 32bytes
- mid | 16bit
- msgtype | enum (string or number?)
- if text/action |
- if action |
- action | bool
- if text |
- text | string | maybe byte array instead?
- if file |
- fkind | 32bit enum | is this right?
@@ -102,9 +103,6 @@ Msgpack array of messages.
Name is the actual string key.
Data type sizes are suggestions, if not defined by the tox protocol.
How unknown `msgtype`s are handled is client defined.
They can be fully ignored or displayed as broken.
## TODO
- [ ] figure out a pro-active approach (instead of waiting for a range request)