()
| 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'; |
no test coverage detected