Commit 239a2fa
committed
Encode and decode data of WireObject
Based on [1] at 2e975cb.
This was implemented by updating the code to reflect the internal API
that I wanted to exist, and then asking Cursor to implement the rules of
the spec and to write tests. I then edited the generated code to
simplify it a bit and add things like @SPEC annotations and other
explanatory comments.
I wanted some round-trip tests that go through the Realtime backend but
decided to leave them until later once I have a bit more knowledge of
the LiveObjects protocol; have created #17.
[1] ably/specification#3351 parent 7f2f311 commit 239a2fa
7 files changed
Lines changed: 876 additions & 57 deletions
File tree
- Sources/AblyLiveObjects
- Internal
- Protocol
- Utility
- Tests/AblyLiveObjectsTests
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
74 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
84 | | - | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
0 commit comments