Skip to content

Commit 6e64131

Browse files
MineKing9534WolverinDEV
authored andcommitted
feat: add skipVersionCheck socket-io parameter
1 parent 71b4c78 commit 6e64131

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/backend/src/network/createSocketServer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,10 @@ export class SocketServerGateway {
530530
return;
531531
}
532532

533+
if (socket.handshake.query.skipVersionCheck == `true`) {
534+
return;
535+
}
536+
533537
const clientInfo = parseSocketClientInfo(socket);
534538
if (clientInfo.versionHash === APP_VERSION_HASH) {
535539
return;

0 commit comments

Comments
 (0)