Skip to content

Commit

Permalink
fix: socket enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammeds1992 committed Sep 29, 2023
1 parent be3e90a commit fa4fc0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/restapi/src/lib/pushapi/PushAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class PushAPI {
},
account: null,
streamOptions: {
socketEnabled: true, // Default value
enabled: true, // Default value
},
};

Expand Down Expand Up @@ -164,7 +164,7 @@ export class PushAPI {
settings.progressHook
);

if (settings.streamOptions.socketEnabled) {
if (settings.streamOptions.enabled) {
const streamInstance = await PushStream.initialize(
api.account,
decryptedPGPPrivateKey,
Expand Down
2 changes: 1 addition & 1 deletion packages/restapi/src/lib/pushstream/pushStreamTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type PushStreamInitializeProps = {
};
raw?: boolean;
env?: ENV;
socketEnabled?: boolean;
enabled?: boolean;
};

export type PushChatInitializeProps = {
Expand Down

0 comments on commit fa4fc0a

Please sign in to comment.