Refactoring reconnection: putting it into the GameScene directly.
This commit is contained in:
@@ -209,6 +209,12 @@ export class SimplePeer {
|
||||
}
|
||||
}
|
||||
|
||||
public closeAllConnections() {
|
||||
for (const userId of this.PeerConnectionArray.keys()) {
|
||||
this.closeConnection(userId);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param userId
|
||||
|
||||
Reference in New Issue
Block a user