Added socket disconnect on game unmount
This commit is contained in:
@@ -105,6 +105,10 @@ class Session extends EventEmitter {
|
||||
}
|
||||
}
|
||||
|
||||
disconnect() {
|
||||
this.socket.disconnect();
|
||||
}
|
||||
|
||||
/**
|
||||
* Send data to a single peer
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user