(e)
| 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) { |
no test coverage detected