diff options
| author | bt <bt@rctt.net> | 2026-03-10 14:48:51 +0100 |
|---|---|---|
| committer | bt <bt@rctt.net> | 2026-03-10 14:48:51 +0100 |
| commit | 69192d956aa2b6b3dbf87bac0e265e718b49dd70 (patch) | |
| tree | 1f439780ffd61737701b990572d215733459f4d0 /solec.ksy | |
| parent | e5644d24c51634c0e263a758bd57b797d5949c9c (diff) | |
| download | solec-69192d956aa2b6b3dbf87bac0e265e718b49dd70.tar.gz solec-69192d956aa2b6b3dbf87bac0e265e718b49dd70.zip | |
Update spec
Diffstat (limited to 'solec.ksy')
| -rw-r--r-- | solec.ksy | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -21,6 +21,10 @@ seq: type: switch-on: payload_type cases: + 'type::handshake': handshake + 'type::ping': ping + 'type::pong': pong +# 'type::message': message 'type::test': test types: @@ -32,13 +36,30 @@ types: type: str size: len_payload encoding: UTF-8 + binary: seq: - id: len_payload type: u2 - id: payload size: len_payload + + handshake: + seq: + - id: proto_ver_major + type: u1 + - id: proto_ver_minor + type: u1 + + ping: {} + + pong: + seq: + - id: timestamp + type: u8 + test: + doc: Test payload, used for parsers testing seq: - id: num1 type: u1 |
