Skip to content

Commit

Permalink
Set other url params even if we dont have an authToken. (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdt authored Mar 4, 2025
1 parent 1d0ad5d commit 08f2118
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/sdk/src/websocket_decompress_adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ export class WebsocketDecompressAdapter {
if (response.ok) {
const { token } = await response.json();
url.searchParams.set('token', token);
url.searchParams.set(
'compression',
compression === 'gzip' ? 'Gzip' : 'None'
);
if (lightMode) {
url.searchParams.set('light', 'true');
}
}
}
url.searchParams.set(
'compression',
compression === 'gzip' ? 'Gzip' : 'None'
);
if (lightMode) {
url.searchParams.set('light', 'true');
}

const ws = new WS(url, wsProtocol);

Expand Down

0 comments on commit 08f2118

Please sign in to comment.