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
Copy file name to clipboardExpand all lines: content/channels/options/deltas.textile
+10-14Lines changed: 10 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ blang[javascript,nodejs].
48
48
49
49
h2(#vcdiff). Install vcdiff decoder
50
50
51
-
A Vcdiff decoder written in pure JavaScript. The vcdiff decoder is a JavaScript library that decodes delta-compressed messages, allowing clients to reconstruct full messages from the small "diffs" sent by Ably to reduce bandwidth usage.
51
+
The vcdiff decoder is written in pure JavaScript and enables clients to reconstruct full messages from the small "diffs" sent by Ably.
The vcdiff decoder library exports the following function for manual delta decoding.
80
+
81
+
@decode(delta, source)@ applies a vcdiff delta to a source message to return a "@Uint8Array@":https://nodejs.org/api/buffer.html#buffer containing the target message:
82
+
83
+
* @delta@: The binary delta/diff data.
84
+
* @source@: The original message to apply the delta to.
The vcdiff decoder library exports the following function for manual delta decoding.
175
-
176
-
@decode(delta, source)@ applies a vcdiff delta to a source message to return a "@Uint8Array@":https://nodejs.org/api/buffer.html#buffer containing the target message:
177
-
178
-
* @delta@: The binary delta/diff data.
179
-
* @source@: The original message to apply the delta to.
180
-
181
-
blang[default].
182
-
183
179
h2(#limitations). Known limitations
184
180
185
181
In principle, @vcdiff@ deltas can be applied to encrypted message payloads, but in practice this provides no benefit because there is no similarity between successive encrypted payloads even for identical or near-identical plaintext message payloads.
0 commit comments