From 534295e8f5ef075ad1111aee3f52cb8a9114c4e7 Mon Sep 17 00:00:00 2001 From: menduz Date: Sun, 11 Sep 2022 11:29:59 -0300 Subject: [PATCH] chore:update @dcl/protocol (#494) --- package-lock.json | 14 +++++++------- package.json | 2 +- packages/shared/apis/host/ExperimentalAPI.ts | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7f77f987d..6a566fa4d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "@dcl/hashing": "^1.1.0", "@dcl/kernel-interface": "^2.0.0-20210922153939.commit-017905d", "@dcl/legacy-ecs": "^6.10.1-2191620277.commit-7b74643", - "@dcl/protocol": "^1.0.0-2825359340.commit-a339b67", + "@dcl/protocol": "^1.0.0-3015628754.commit-7713e2e", "@dcl/rpc": "^1.0.1-20220608232056.commit-741737c", "@dcl/schemas": "^5.8.1", "@dcl/urn-resolver": "^1.4.0", @@ -478,9 +478,9 @@ "integrity": "sha512-Z0zpNr2HAxn2cLWUadWGlzaG48Z+N3hg2bI20UH+OT8NJtvCJnAwVBshAG83iAn4BTC+CsUsk4A394jrlv2ZIQ==" }, "node_modules/@dcl/protocol": { - "version": "1.0.0-2825359340.commit-a339b67", - "resolved": "https://registry.npmjs.org/@dcl/protocol/-/protocol-1.0.0-2825359340.commit-a339b67.tgz", - "integrity": "sha512-91/p0xl9iSynHczLePrF4vl8wkLNoGS7XFy4ySfwXJs36llN6ZCAeoB4LIPR2Scb1AImx3M/T9Ebyz+NySOPSQ==" + "version": "1.0.0-3015628754.commit-7713e2e", + "resolved": "https://registry.npmjs.org/@dcl/protocol/-/protocol-1.0.0-3015628754.commit-7713e2e.tgz", + "integrity": "sha512-VuWq5gmSfmg83nhmQWbiSQLlSYLotXM/gQyKyJ/YlZwH8oLgX+9X9RaXHxImWalOaRXii1H32Wt37wW2wAxdjw==" }, "node_modules/@dcl/rpc": { "version": "1.0.1", @@ -12904,9 +12904,9 @@ "integrity": "sha512-Z0zpNr2HAxn2cLWUadWGlzaG48Z+N3hg2bI20UH+OT8NJtvCJnAwVBshAG83iAn4BTC+CsUsk4A394jrlv2ZIQ==" }, "@dcl/protocol": { - "version": "1.0.0-2825359340.commit-a339b67", - "resolved": "https://registry.npmjs.org/@dcl/protocol/-/protocol-1.0.0-2825359340.commit-a339b67.tgz", - "integrity": "sha512-91/p0xl9iSynHczLePrF4vl8wkLNoGS7XFy4ySfwXJs36llN6ZCAeoB4LIPR2Scb1AImx3M/T9Ebyz+NySOPSQ==" + "version": "1.0.0-3015628754.commit-7713e2e", + "resolved": "https://registry.npmjs.org/@dcl/protocol/-/protocol-1.0.0-3015628754.commit-7713e2e.tgz", + "integrity": "sha512-VuWq5gmSfmg83nhmQWbiSQLlSYLotXM/gQyKyJ/YlZwH8oLgX+9X9RaXHxImWalOaRXii1H32Wt37wW2wAxdjw==" }, "@dcl/rpc": { "version": "1.0.1", diff --git a/package.json b/package.json index 2c5170d74..a9849e48a 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "@dcl/hashing": "^1.1.0", "@dcl/kernel-interface": "^2.0.0-20210922153939.commit-017905d", "@dcl/legacy-ecs": "^6.10.1-2191620277.commit-7b74643", - "@dcl/protocol": "^1.0.0-2825359340.commit-a339b67", + "@dcl/protocol": "^1.0.0-3015628754.commit-7713e2e", "@dcl/rpc": "^1.0.1-20220608232056.commit-741737c", "@dcl/schemas": "^5.8.1", "@dcl/urn-resolver": "^1.4.0", diff --git a/packages/shared/apis/host/ExperimentalAPI.ts b/packages/shared/apis/host/ExperimentalAPI.ts index 6f9d6bff0..4a9198cf4 100644 --- a/packages/shared/apis/host/ExperimentalAPI.ts +++ b/packages/shared/apis/host/ExperimentalAPI.ts @@ -10,12 +10,12 @@ export function registerExperimentalAPIServiceServerImplementation(port: RpcServ codegen.registerService(port, ExperimentalAPIServiceDefinition, async () => ({ async sendToRenderer(req, ctx) { const protocol = await rendererProtocol - return protocol.crdtService.sendCrdt({ sceneId: ctx.sceneData.id, payload: req.data }) + return protocol.crdtService.sendCrdt({ sceneId: ctx.sceneData.id, payload: req.data, sceneNumber: 0xffffffff }) }, async messageFromRenderer(_, ctx) { const protocol = await rendererProtocol - const response = await protocol.crdtService.pullCrdt({ sceneId: ctx.sceneData.id }) + const response = await protocol.crdtService.pullCrdt({ sceneId: ctx.sceneData.id, sceneNumber: 0xffffffff }) return { data: [response.payload] } } }))