PatchMessage
Represents a stack of changes made on the server of client side.
A PatchMessage is what is passed between the client and the server. It contains an array of
Edits that represent updates to be performed on the opposing sides document.
<E>
the type of the Edit that this PatchMessage holds.
-
Identifies the document that this edit is related to.
Declaration
Swift
var documentId: String! {get}
-
Identifies the client that this edit instance belongs to.
Declaration
Swift
var clientId: String! {get}
-
The list Edits.
Declaration
Swift
var edits: [E]! {get}
-
Default init.
Declaration
Swift
init(id: String, clientId: String, edits: [E])
Parameters
pathMessage
unique id.
client
id to identify the client sesion.
list
of edits that makes the content of the patch.