Skip to content

Commit

Permalink
fix: socket url fix (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammeds1992 authored Jan 8, 2024
1 parent 28a03d8 commit 57a8888
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 57a8888

Please sign in to comment.