add automatic room deletion

This commit is contained in:
Asraelite 2016-03-24 01:22:25 +00:00
parent df3f0d1436
commit f3619ba891
2 changed files with 9 additions and 0 deletions

View file

@ -23,6 +23,10 @@ class GameServer {
room.add(player);
}
deleteRoom(name) {
this.rooms.delete(name);
}
start() {
this.net.listen();
}