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

Method _onChannelClosed

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

Source from the content-addressed store, hash-verified

301 }
302
303 _onChannelClosed() {
304 console.log('RTC: channel closed', this._peerId);
305 if (!this.isCaller) return;
306 this._connect(this._peerId, true); // reopen the channel
307 }
308
309 _onConnectionStateChange(e) {
310 console.log('RTC: state changed:', this._conn.connectionState);

Callers 2

_onChannelOpenedMethod · 0.95

Calls 1

_connectMethod · 0.95

Tested by

no test coverage detected