Brozy123 commited on
Commit
ab2a796
·
verified ·
1 Parent(s): d9e192d

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -2
index.js CHANGED
@@ -55,11 +55,12 @@ const client = new Client({
55
  rest: {
56
  timeout: 120_000,
57
  agent: ultimateFix.dispatcher,
 
58
  },
59
  ws: {
60
  agent: require('https').globalAgent,
61
- // Point the live connection directly at your Cloudflare Tunnel
62
- gateway: (process.env.DISCORD_BASE_URL ? process.env.DISCORD_BASE_URL.replace('http', 'ws') : undefined)
63
  }
64
  });
65
 
 
55
  rest: {
56
  timeout: 120_000,
57
  agent: ultimateFix.dispatcher,
58
+ retries: 3
59
  },
60
  ws: {
61
  agent: require('https').globalAgent,
62
+ gateway: (process.env.DISCORD_BASE_URL ? process.env.DISCORD_BASE_URL.replace('http', 'ws') : undefined),
63
+ compress: false // Disable compression for more stability over the proxy tunnel
64
  }
65
  });
66