MCPcopy
hub / github.com/scality/cloudserver / sendPing

Function sendPing

lib/management/push.js:105–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 let pingTimeout = null;
104
105 function sendPing() {
106 if (ws.readyState === ws.OPEN) {
107 ws.ping(err => _logError(err, 'failed to send a ping', 'sendPing'));
108 }
109 pingTimeout = setTimeout(() => ws.terminate(), PING_INTERVAL_MS);
110 }
111
112 function initiatePing() {
113 clearTimeout(pingTimeout);

Callers

nothing calls this directly

Calls 1

_logErrorFunction · 0.85

Tested by

no test coverage detected