diff --git a/bootstrap-languages/p-diff-sync/linksAdapter.ts b/bootstrap-languages/p-diff-sync/linksAdapter.ts index b9bb9ca3c..3701d6607 100644 --- a/bootstrap-languages/p-diff-sync/linksAdapter.ts +++ b/bootstrap-languages/p-diff-sync/linksAdapter.ts @@ -93,9 +93,9 @@ export class LinkAdapter implements LinkSyncAdapter { if (broadcast_payload.reference.parents) { broadcast_payload.reference.parents = broadcast_payload.reference.parents.map( (parent: Buffer) => parent ? Buffer.from(parent).toString('base64') : 'null'); }; - console.log("sync(); sending referenceh hash", broadcast_payload.reference_hash); - console.log("sync(); sending broadcast payload"); - console.log(JSON.stringify(broadcast_payload)); + // console.log("sync(); sending referenceh hash", broadcast_payload.reference_hash); + // console.log("sync(); sending broadcast payload"); + // console.log(JSON.stringify(broadcast_payload)); this.socket.emit("broadcast", {roomId: this.languageName, signal: broadcast_payload}); } } catch (e) { @@ -242,15 +242,15 @@ export class LinkAdapter implements LinkSyncAdapter { this.myCurrentRevision = res; } let broadcast_payload = await this.hcDna.call(DNA_NICK, ZOME_NAME, "get_broadcast_payload", null); - console.log('commit got broadcast payload', broadcast_payload.referencence_hash); - console.log("which has type", typeof broadcast_payload.reference_hash); + // console.log('commit got broadcast payload', broadcast_payload.referencence_hash); + // console.log("which has type", typeof broadcast_payload.reference_hash); if (broadcast_payload) { broadcast_payload.reference_hash = Buffer.from(broadcast_payload.reference_hash).toString('base64'); broadcast_payload.reference.diff = Buffer.from(broadcast_payload.reference.diff).toString('base64'); if (broadcast_payload.reference.parents) { broadcast_payload.reference.parents = broadcast_payload.reference.parents.map( (parent: Buffer) => parent ? Buffer.from(parent).toString('base64') : 'null'); }; - console.log("commit sending referenceh hash", broadcast_payload.reference_hash); + //console.log("commit sending referenceh hash", broadcast_payload.reference_hash); this.socket.emit("broadcast", {roomId: this.languageName, signal: broadcast_payload}); } return res as string; @@ -302,13 +302,13 @@ export class LinkAdapter implements LinkSyncAdapter { //console.log("PerspectiveDiffSync.handleHolochainSignal: Got lock"); //const parsed = JSON.parse(reference_hash); - console.log("Handle holochain signal parsed ref hash"); - console.log(JSON.stringify({ - diff, - reference_hash, - reference, - broadcast_author - })); + // console.log("Handle holochain signal parsed ref hash"); + // console.log(JSON.stringify({ + // diff, + // reference_hash, + // reference, + // broadcast_author + // })); if (!Buffer.isBuffer(reference_hash)) { reference_hash = Buffer.from(reference_hash, 'base64'); } diff --git a/cli/seed_proto.json b/cli/seed_proto.json index 6eff62b50..e261ea2c2 100644 --- a/cli/seed_proto.json +++ b/cli/seed_proto.json @@ -4,7 +4,7 @@ { "meta": { "name": "perspectiveDiffSync", - "description": "Holochain based Perspective link sharing language", + "description": "Holochain based Perspective link sharing language, with revision signals sent with socket.io", "sourceCodeLink": "https://github.com/perspect3vism/perspective-diff-sync", "possibleTemplateParams": ["uid", "name", "description"] },