diff --git a/server/index.js b/server/index.js index c50b4d8..f35a299 100644 --- a/server/index.js +++ b/server/index.js @@ -34,8 +34,10 @@ class SnapdropServer { switch (message.type) { case 'disconnect': this._leaveRoom(sender); + break; case 'pong': sender.lastBeat = Date.now(); + break; } // relay message to recipient