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

Method constructor

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

Source from the content-addressed store, hash-verified

4class ServerConnection {
5
6 constructor() {
7 this._connect();
8 Events.on('beforeunload', e => this._disconnect());
9 Events.on('pagehide', e => this._disconnect());
10 document.addEventListener('visibilitychange', e => this._onVisibilityChange());
11 }
12
13 _connect() {
14 clearTimeout(this._reconnectTimer);

Callers

nothing calls this directly

Calls 4

_connectMethod · 0.95
_disconnectMethod · 0.95
_onVisibilityChangeMethod · 0.95
onMethod · 0.80

Tested by

no test coverage detected