mirror of
https://github.com/seigler/govobject-proposal
synced 2025-07-27 06:46:10 +00:00
adds disconnect event for socket io
This commit is contained in:
parent
7f8528a14b
commit
10ef099643
1 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,11 @@
|
|||
console.log("socket.io initialized...");
|
||||
});
|
||||
|
||||
socket.on('disconnect', function() {
|
||||
console.log('connection lost');
|
||||
alert('We sorry; connection lost.');
|
||||
});
|
||||
|
||||
return gov;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue