bugfix again

This commit is contained in:
biglyderv 2024-10-02 04:18:43 -04:00
parent 994e5aa958
commit f5d72c01e5
No known key found for this signature in database
GPG key ID: 33AC87E9ACE66954

View file

@ -122,6 +122,7 @@ class Game extends GameBasic {
let { player } = this;
if (player.health <= 0) {
let that = this;
this.ws.close();
this.ws = new WebSocket(origin);
this.ws.addEventListener('message', function (e) { that.recv(e) });