diff --git a/index.html b/index.html index d91db7e..431f402 100755 --- a/index.html +++ b/index.html @@ -53,6 +53,11 @@ console.log("socket.io initialized..."); }); + socket.on('disconnect', function() { + console.log('connection lost'); + alert('We sorry; connection lost.'); + }); + return gov; };