async function handleDiscordPayload(
  data,
  shardId,
) {
  await fetch(ws.url, {
    headers: {
      authorization: ws.secretKey,
    },
    method: "post",
    body: JSON.stringify({
      shardId,
      data,
    }),
  }).catch(console.error);
}
/** Handler for processing all dispatch payloads that should be sent/forwarded to another server/vps/process. */
Handler for processing all dispatch payloads that should be sent/forwarded to another server/vps/process.
Handler for processing all dispatch payloads that should be sent / forwarded to another server / vps / process .
async function handleDiscordPayload(
  data,
  shardId,
) {
  await fetch(ws.url, {
    headers: {
      authorization: ws.secretKey,
    },
    method: "post",
    body: JSON.stringify({
      shardId,
      data,
    }),
  }).catch(console.error);
}
async function handleDiscordPayload ( data , shardId , ) { await fetch ( ws . url , { headers : { authorization : ws . secretKey , } , method : "post" , body : JSON . stringify ( { shardId , data , } ) , } ) . catch ( console . error ) ; }
Handler for processing all dispatch payloads that should be sent/forwarded to another server/vps/process.
Handler for processing all dispatch payloads that should be sent / forwarded to another server / vps / process .