Skip to content

Commit

Permalink
Merge pull request #171 from tigrisdata/main
Browse files Browse the repository at this point in the history
Beta release
  • Loading branch information
adilansari authored Nov 18, 2022
2 parents 07cbb62 + 44e9cb6 commit 123c608
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tigris.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ export interface TigrisClientConfig {
supportBigInt?: boolean;

/**
* Tigris makes periodic ping to server in order to keep connection alive in case if user's
* Tigris can make periodic ping to server in order to keep connection alive in case if user's
* workload is pub/sub with no messages for long period.
*/
disablePing?: boolean;
enablePing?: boolean;

/**
* Controls the ping interval, if not specified defaults to 300_000ms (i.e. 5 min)
Expand Down Expand Up @@ -228,8 +228,8 @@ export class Tigris {
}
});
};
if (config.disablePing === undefined || !config.disablePing) {
// make a ping to server every 5 minute
if (config.enablePing) {
// make a ping to server at configured interval
let pingIntervalMs = config.pingIntervalMs;
if (pingIntervalMs === undefined) {
// 5min
Expand Down

0 comments on commit 123c608

Please sign in to comment.