Skip to content

Commit

Permalink
Merge pull request #205 from WalletConnect/fix/remove-mobile-headers
Browse files Browse the repository at this point in the history
fix: remove socket mobile headers
  • Loading branch information
ignaciosantise authored Dec 4, 2024
2 parents fbd47cd + ebca94c commit c44fd04
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions jsonrpc/ws-connection/src/ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ export class WsConnection implements IJsonRpcConnection {
this.registering = true;

return new Promise((resolve, reject) => {
const packageName = new URLSearchParams(url).get("packageName");
const bundleId = new URLSearchParams(url).get("bundleId");
const opts = isReactNative()
? { headers: { bundleId, packageName } }
: { rejectUnauthorized: !isLocalhostUrl(url) };
const opts = !isReactNative() ? { rejectUnauthorized: !isLocalhostUrl(url) } : undefined;
const socket: WebSocket = new WS(url, [], opts);
if (hasBuiltInWebSocket()) {
socket.onerror = (event: Event) => {
Expand Down

0 comments on commit c44fd04

Please sign in to comment.