@kernelminds/create-enclave 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kernelminds/create-enclave",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "🚀 The official Scailo starter framework. Instantly scaffold a complete, dependency-ready starter project that could be deployed as an application or a widget on Scailo.",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/scailo/create-enclave",
@@ -228,11 +228,16 @@ func getGRPCConnection() *grpc.ClientConn {
228
228
  creds = grpc.WithTransportCredentials(credentials.NewClientTLSFromCert(nil, getServerURL()))
229
229
  }
230
230
 
231
+ // Max Message Size is 64MB
232
+ const maxMessageSize = 64 * 1024 * 1024
231
233
  conn, err := grpc.NewClient(getServerURL(), creds, grpc.WithKeepaliveParams(keepalive.ClientParameters{
232
234
  Time: 10 * time.Second, // Ping every 10s if idle
233
235
  Timeout: time.Second, // Wait 1s for response
234
236
  PermitWithoutStream: true, // Ping even if there are no active RPCs
235
- }))
237
+ }), grpc.WithDefaultCallOptions(
238
+ grpc.MaxCallRecvMsgSize(maxMessageSize),
239
+ grpc.MaxCallSendMsgSize(maxMessageSize),
240
+ ))
236
241
  if err != nil {
237
242
  log.Fatalf("did not connect: %v", err)
238
243
  }