Skip to content

Commit

Permalink
fix: bump examples SDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammeds1992 committed Nov 14, 2023
1 parent f0ae882 commit 11cc496
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/examples/sdk-backend-node/chat/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const eventlistener = async (
export const runChatClassUseCases = async (): Promise<void> => {
const userAlice = await PushAPI.initialize(signer, { env });

const stream = await userAlice.stream(
const stream = await userAlice.initStream(
[CONSTANTS.STREAM.CHAT, CONSTANTS.STREAM.CHAT_OPS],
{
// stream supports other products as well, such as STREAM.CHAT, STREAM.CHAT_OPS
Expand All @@ -90,6 +90,8 @@ export const runChatClassUseCases = async (): Promise<void> => {
}
);

await stream.connect();

const userBob = await PushAPI.initialize(secondSigner, { env });
const userKate = await PushAPI.initialize(thirdSigner, { env });

Expand Down
2 changes: 1 addition & 1 deletion packages/examples/sdk-backend-node/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const start = async (): Promise<void> => {
console.log(`${returnENVLog()}`);

await runUserCases();
//await runNotificationUseCases();
await runNotificationUseCases();
await runChatUseCases();
await runVideoUseCases();
await runSpaceUseCases();
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/sdk-backend-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@pushprotocol/restapi": "0.0.1-alpha.53",
"@pushprotocol/restapi": "1.4.35",
"@pushprotocol/socket": "^0.5.2"
}
}

0 comments on commit 11cc496

Please sign in to comment.