(type)
| 69 | } |
| 70 | |
| 71 | async createPeer(type) { |
| 72 | if (this.peers[type]) { |
| 73 | return; |
| 74 | } |
| 75 | this.peers[type] = createPeerController(type); |
| 76 | this.peers[type].peers[this.peerType] = this; |
| 77 | await controllerPool.updateSession(this.id, this); |
| 78 | await controllerPool.set(this.peers[type].id, this.peers[type]); |
| 79 | } |
| 80 | |
| 81 | async removePeer(type) { |
| 82 | if (!this.peers[type]) { |