Skip to content

Commit

Permalink
fix: merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
madhur-push committed Jan 9, 2024
2 parents 194e064 + 57a8888 commit 924ce7d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/restapi/src/lib/pushstream/socketClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export function createSocketConnection({
reconnectionDelayMax,
} = socketOptions || {};

const pushWSUrl = API_BASE_URL[env];
let pushWSUrl = API_BASE_URL[env];

if (pushWSUrl.endsWith('/apis')) {
pushWSUrl = pushWSUrl.substring(0, pushWSUrl.length - 5);
}
const transports = ['websocket'];

let pushSocket = null;
Expand Down

0 comments on commit 924ce7d

Please sign in to comment.