Skip to content
Snippets Groups Projects
Unverified Commit 56509a2b authored by Zdravko Iliev's avatar Zdravko Iliev
Browse files

fix: try to stringify the buffer and see what is the size


Signed-off-by: default avatarZdravko Iliev <zdravko.iliev@vereign.com>
parent 72916fec
No related branches found
No related tags found
1 merge request!69feat: compress didcomm messages
# OCM ENGINE - AGENT
# OCM ENGINE - AGENT
Agent service is a wrapper around @ocm-engine/askar library.
......
......@@ -1018,6 +1018,11 @@ export class AgentService {
Buffer.from(compressedMessage).length / (1024 * 1024),
);
console.log(
"compressed data stringifyed",
Buffer.from(JSON.stringify(compressedData)).length / (1024 * 1024),
);
const messageRecord = await this.askar.agent.basicMessages.sendMessage(
dto.connectionId,
compressedMessage,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment