Add function to update the player's socket ID.

This commit is contained in:
Oliver-Akins 2020-10-23 23:41:58 -06:00
parent e7f8a5462a
commit 1a030411c4

View file

@ -56,6 +56,10 @@ export class Game {
this.player_len++;
};
public update_socket(player: string, socket: string): void {
this._players[player].socket = socket;
};
public remove_player(player: string, ban: boolean): void {
delete this._players[player];
if (ban) {