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

Method refresh

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

Source from the content-addressed store, hash-verified

345 }
346
347 refresh() {
348 // check if channel is open. otherwise create one
349 if (this._isConnected() || this._isConnecting()) return;
350 this._connect(this._peerId, this._isCaller);
351 }
352
353 _isConnected() {
354 return this._channel && this._channel.readyState === 'open';

Callers 2

_sendMethod · 0.95
_onPeersMethod · 0.80

Calls 3

_isConnectedMethod · 0.95
_isConnectingMethod · 0.95
_connectMethod · 0.95

Tested by

no test coverage detected