Skip to content

Commit 79ad8d9

Browse files
committed
Clarify nonce generation for LiveObjects operations
1 parent aab324e commit 79ad8d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

textile/objects-features.textile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ h3(#realtime-objects). RealtimeObjects
4444
****** @(RTO11f4c1f)@ If the value is of type @Binary@, set @ObjectsMapEntry.data.bytes@ to that value
4545
***** @(RTO11f4c2)@ Add a new entry to @ObjectOperation.map.entries@ with the current key and the created @ObjectsMapEntry@ as the value
4646
*** @(RTO11f5)@ Create an initial value JSON string as described in "RTO13":#RTO13, passing in the partial @ObjectOperation@ from "RTO11f4":#RTO11f4
47-
*** @(RTO11f6)@ Create a unique nonce as a random string
47+
*** @(RTO11f6)@ Create a unique string nonce with 16+ characters; the nonce is used to ensure object ID uniqueness across clients
4848
*** @(RTO11f7)@ Get the current server time as described in "RTO16":#RTO16
4949
*** @(RTO11f8)@ Create an @objectId@ for the new @LiveMap@ object as described in "RTO14":#RTO14, passing in @map@ string as the @type@, the initial value JSON string from "RTO11f5":#RTO11f5, the nonce from "RTO11f6":#RTO11f6, and the server time from "RTO11f7":#RTO11f7
5050
*** @(RTO11f9)@ Set @ObjectMessage.operation.action@ to @ObjectOperationAction.MAP_CREATE@
@@ -74,7 +74,7 @@ h3(#realtime-objects). RealtimeObjects
7474
**** @(RTO12f2a)@ Set @ObjectOperation.counter.count@ to 0 if @count@ is omitted
7575
**** @(RTO12f2b)@ Otherwise, set @ObjectOperation.counter.count@ to the provided @count@ value
7676
*** @(RTO12f3)@ Create an initial value JSON string as described in "RTO13":#RTO13, passing in the partial @ObjectOperation@ from "RTO12f2":#RTO12f2
77-
*** @(RTO12f4)@ Create a unique nonce as a random string
77+
*** @(RTO12f4)@ Create a unique string nonce with 16+ characters; the nonce is used to ensure object ID uniqueness across clients
7878
*** @(RTO12f5)@ Get the current server time as described in "RTO16":#RTO16
7979
*** @(RTO12f6)@ Create an @objectId@ for the new @LiveCounter@ object as described in "RTO14":#RTO14, passing in @counter@ string as the @type@, the initial value JSON string from "RTO12f3":#RTO12f3, the nonce from "RTO12f4":#RTO12f4, and the server time from "RTO12f5":#RTO12f5
8080
*** @(RTO12f7)@ Set @ObjectMessage.operation.action@ to @ObjectOperationAction.COUNTER_CREATE@

0 commit comments

Comments
 (0)