You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need a type that represents (when considering [1] at cb11ba8) RTO13's
"partial ObjectOperation"; namely an ObjectOperation without an objectId
property. This is something that is easy to represent in TypeScript but
a bit of a faff in Swift; we have to create a new type for it.
Code largely generated by Cursor at my instruction.
[1] ably/specification#353
/// A partial version of `ObjectOperation` that excludes the `objectId` property. Used for encoding initial values where the `objectId` is not yet known.
35
+
///
36
+
/// `ObjectOperation` delegates its encoding and decoding to `PartialObjectOperation`.
Copy file name to clipboardExpand all lines: Sources/AblyLiveObjects/Protocol/WireObjectMessage.swift
+56-6Lines changed: 56 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -157,9 +157,11 @@ internal enum ObjectsMapSemantics: Int {
157
157
case lww =0
158
158
}
159
159
160
-
internalstructWireObjectOperation{
160
+
/// A partial version of `WireObjectOperation` that excludes the `objectId` property. Used for encoding initial values where the `objectId` is not yet known.
161
+
///
162
+
/// `WireObjectOperation` delegates its encoding and decoding to `PartialWireObjectOperation`.
0 commit comments