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
/// Encoding happens at the SDK runtime: https://github.com/decentraland/js-sdk-toolchain/blob/f122eaa2acaaed80db7ee0302e8d60ca7d2337bf/packages/@dcl/sdk/src/network/message-bus-sync.ts#L177-L208
37
+
/// The format is: [message type byte] + [1 byte: address length] + [address bytes] + [raw CRDT messages]
// Need at least 3 -> 1 byte type + 1 byte address length + some data
45
+
// Schema at https://github.com/decentraland/js-sdk-toolchain/blob/f122eaa2acaaed80db7ee0302e8d60ca7d2337bf/packages/@dcl/sdk/src/network/message-bus-sync.ts#L197-L208
46
+
if(memory.Length<3)
47
+
return;
48
+
49
+
constintMIN_OFFSET=2;
50
+
51
+
// Write the first byte (message type: RES_CRDT_STATE = 3)
Copy file name to clipboardExpand all lines: Explorer/Assets/DCL/Infrastructure/CrdtEcsBridge/JsModulesImplementation/Communications/CommunicationsControllerAPIImplementationBase.cs
+33-14Lines changed: 33 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -61,11 +61,30 @@ public void SendBinary(IReadOnlyList<PoolableByteArray> broadcastData, string? r
Copy file name to clipboardExpand all lines: Explorer/Assets/DCL/Infrastructure/CrdtEcsBridge/JsModulesImplementation/Communications/SDKMessageBus/SDKMessageBusCommsAPIImplementation.cs
0 commit comments