Increase gRPC max message sizes

This commit is contained in:
Gregory Schier
2024-12-03 09:24:14 -08:00
parent 0443fbdfdb
commit 2b076c90e4
2 changed files with 29 additions and 59 deletions

View File

@@ -6,7 +6,10 @@ import { PluginHandle } from './PluginHandle';
const port = process.env.PORT || '50051';
const channel = createChannel(`localhost:${port}`);
const channel = createChannel(`localhost:${port}`, undefined, {
'grpc.max_receive_message_length': Number.MAX_SAFE_INTEGER,
'grpc.max_send_message_length': Number.MAX_SAFE_INTEGER,
});
const client: PluginRuntimeClient = createClient(PluginRuntimeDefinition, channel);
const events = new EventChannel();