sharktide commited on
Commit
691ea6a
·
verified ·
1 Parent(s): aa3c1b1

Update server/wsHandler.js

Browse files
Files changed (1) hide show
  1. server/wsHandler.js +4 -4
server/wsHandler.js CHANGED
@@ -86,10 +86,10 @@ async function buildUsagePayload(client, clientId = '') {
86
  export async function handleWsMessage(ws, msg, wsClients) {
87
  const client = wsClients.get(ws); if (!client) return;
88
  // Require turnstile verification for most message types
89
- if (!client.verified && msg.type !== 'ping' && msg.type !== 'turnstile:verify' && msg.type !== 'turnstile:confirm') {
90
- console.log("TURNSTILE REQUIRED", msg.type)
91
- return safeSend(ws, { type: 'error', message: 'turnstile:required' });
92
- } else console.log("BYPASS TURNSTILE", msg.type)
93
  const bypassDeviceValidation = new Set([
94
  'ping',
95
  'turnstile:verify',
 
86
  export async function handleWsMessage(ws, msg, wsClients) {
87
  const client = wsClients.get(ws); if (!client) return;
88
  // Require turnstile verification for most message types
89
+ // if (!client.verified && msg.type !== 'ping' && msg.type !== 'turnstile:verify' && msg.type !== 'turnstile:confirm') {
90
+ // console.log("TURNSTILE REQUIRED", msg.type)
91
+ // return safeSend(ws, { type: 'error', message: 'turnstile:required' });
92
+ // } else console.log("BYPASS TURNSTILE", msg.type)
93
  const bypassDeviceValidation = new Set([
94
  'ping',
95
  'turnstile:verify',