(type)
| 79 | } |
| 80 | |
| 81 | async removePeer(type) { |
| 82 | if (!this.peers[type]) { |
| 83 | return; |
| 84 | } |
| 85 | await controllerPool.delete(this.peers[type].id); |
| 86 | delete this.peers[type]; |
| 87 | await controllerPool.updateSession(this.id, this); |
| 88 | } |
| 89 | |
| 90 | async setState(nextState) { |
| 91 | this.state = {...this.state, ...nextState}; |
no test coverage detected