Skip to content

Commit

Permalink
fix: fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman035 committed Sep 21, 2023
1 parent d6398ab commit 1db1348
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/examples/sdk-backend-node/pushAPI/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ export const runPushAPICases = async (): Promise<void> => {
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');
Expand Down

0 comments on commit 1db1348

Please sign in to comment.