MCPcopy Index your code
hub / github.com/share/sharedb / delayedReconnect

Function delayedReconnect

test/client/submit.js:427–437  ·  view source on GitHub ↗
(backend, connection)

Source from the content-addressed store, hash-verified

425 });
426
427 function delayedReconnect(backend, connection) {
428 // Disconnect after the message has sent and before the server will have
429 // had a chance to reply
430 process.nextTick(function() {
431 connection.close();
432 // Reconnect once the server has a chance to save the op data
433 setTimeout(function() {
434 backend.connect(connection);
435 }, 100);
436 });
437 }
438
439 it('resends create when disconnected before ack', function(done) {
440 var backend = this.backend;

Callers 1

submit.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…