Skip to content

Commit

Permalink
Pass max message size to ws implementation
Browse files Browse the repository at this point in the history
The ws implementation (even as a client) needs to know that we're about
to tell it to deal with outrageously overwised messages.
  • Loading branch information
hobinjk-ptc committed Apr 22, 2024
1 parent b4271ba commit 5fd4f7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ToolSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ class ToolSocket {
const searchParams = new URLSearchParams({networkID: this.networkId});
this.url = addSearchParams(url, searchParams);

this.socket = new WebSocketWrapper(this.url);
this.socket = new WebSocketWrapper(this.url, [], {
maxPayload: MAX_MESSAGE_SIZE,
});
this.configureSocket();
}

Expand Down

0 comments on commit 5fd4f7b

Please sign in to comment.