From 1db13483d552054297c987eee457d923c021e6d4 Mon Sep 17 00:00:00 2001 From: aman035 Date: Thu, 21 Sep 2023 17:54:22 +0530 Subject: [PATCH] fix: fix examples --- packages/examples/sdk-backend-node/pushAPI/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/examples/sdk-backend-node/pushAPI/index.ts b/packages/examples/sdk-backend-node/pushAPI/index.ts index 313e959ce..60fdd8285 100644 --- a/packages/examples/sdk-backend-node/pushAPI/index.ts +++ b/packages/examples/sdk-backend-node/pushAPI/index.ts @@ -149,8 +149,9 @@ export const runPushAPICases = async (): Promise => { type: 'Text', }); pushSDKSocket.on(EVENTS.CHAT_RECEIVED_MESSAGE, async (message) => { - await userAlice.chat.decrypt(message); - pushSDKSocket.disconnect(); + // uncomment after latest sdk deployment + // await userAlice.chat.decrypt([message]); + // pushSDKSocket.disconnect(); }); } console.log('PushAPI.chat.decrypt | Response - 200 OK\n\n');