diff --git a/wrappers/node/src/api/connection.ts b/wrappers/node/src/api/connection.ts index 65d9301301..dd03cbbe8f 100644 --- a/wrappers/node/src/api/connection.ts +++ b/wrappers/node/src/api/connection.ts @@ -139,7 +139,7 @@ export class NonmediatedConnection extends VcxBaseWithState { try { return await ffiNapi.connectionSendAriesMessage(this.handle, content); @@ -190,7 +190,7 @@ export class NonmediatedConnection extends VcxBaseWithState { - const data = ffiNapi.connectionSerialize(handle); + const data = JSON.parse(ffiNapi.connectionSerialize(handle)); return JSON.stringify({ data, source_id: this.sourceId, version: '1.0' }); } protected _deserializeFn = ffiNapi.connectionDeserialize;