Gateway: raise client maxPayload

This commit is contained in:
Peter Steinberger
2025-12-18 19:48:07 +01:00
parent b5a89e8907
commit 7008493f03

View File

@@ -52,7 +52,7 @@ export class GatewayClient {
if (this.closed) return;
const url = this.opts.url ?? "ws://127.0.0.1:18789";
// Allow node screen snapshots and other large responses.
this.ws = new WebSocket(url, { maxPayload: 10 * 1024 * 1024 });
this.ws = new WebSocket(url, { maxPayload: 25 * 1024 * 1024 });
this.ws.on("open", () => this.sendConnect());
this.ws.on("message", (data) => this.handleMessage(data.toString()));