MCPcopy
hub / github.com/SnapDrop/snapdrop / _onDisconnect

Method _onDisconnect

client/scripts/network.js:71–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 }
70
71 _onDisconnect() {
72 console.log('WS: server disconnected');
73 Events.fire('notify-user', 'Connection lost. Retry in 5 seconds...');
74 clearTimeout(this._reconnectTimer);
75 this._reconnectTimer = setTimeout(_ => this._connect(), 5000);
76 }
77
78 _onVisibilityChange() {
79 if (document.hidden) return;

Callers 1

_connectMethod · 0.95

Calls 2

_connectMethod · 0.95
fireMethod · 0.80

Tested by

no test coverage detected