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

Method _onConnectionStateChange

client/scripts/network.js:309–320  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

307 }
308
309 _onConnectionStateChange(e) {
310 console.log('RTC: state changed:', this._conn.connectionState);
311 switch (this._conn.connectionState) {
312 case 'disconnected':
313 this._onChannelClosed();
314 break;
315 case 'failed':
316 this._conn = null;
317 this._onChannelClosed();
318 break;
319 }
320 }
321
322 _onIceConnectionStateChange() {
323 switch (this._conn.iceConnectionState) {

Callers 1

_openConnectionMethod · 0.95

Calls 1

_onChannelClosedMethod · 0.95

Tested by

no test coverage detected