Refactoring reconnection: putting it into the GameScene directly.
This commit is contained in:
parent
d785a8a1bf
commit
f88f28db3f
5 changed files with 101 additions and 58 deletions
|
@ -209,6 +209,12 @@ export class SimplePeer {
|
|||
}
|
||||
}
|
||||
|
||||
public closeAllConnections() {
|
||||
for (const userId of this.PeerConnectionArray.keys()) {
|
||||
this.closeConnection(userId);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param userId
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue