We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7416c commit 12447a9Copy full SHA for 12447a9
src/clientStubFromSlash.ts
@@ -1,8 +1,9 @@
1
import * as grpc from "@grpc/grpc-js";
2
import * as Url from "url-parse";
3
-import { DgraphClientStub } from "./clientStub";
+import {DgraphClientStub} from "./clientStub";
4
5
const PORT = "443";
6
+
7
/**
8
* @deprecated since v21.3 and will be removed in v21.07 release.
9
* Please use {@link clientStubFromCloudEndpoint} instead.
@@ -39,5 +40,9 @@ export function clientStubFromCloudEndpoint(
39
40
grpc.credentials.createSsl(),
41
metaCreds,
42
);
- return new DgraphClientStub(backenedURL, credentials);
43
+ return new DgraphClientStub(backenedURL, credentials, {
44
+ "grpc.keepalive_time_ms": 60 * 1000,
45
+ "grpc.keepalive_timeout_ms": 10 * 1000,
46
+ "grpc.keepalive_permit_without_calls": 1,
47
+ });
48
}
0 commit comments