Increase gRPC max message sizes

This commit is contained in:
Gregory Schier committed 2024-12-03 09:24:14 -08:00
1 parent 0443fbdfdb
commit 2b076c90e4
2 files changed
+29 -59

No files matched your search

+4 -1
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();