SyntaxFix
Write A Post
Hire A Developer
Questions
You can check whether the connection was lost or not by using this function:-
var socket = io( /**connection**/ ); socket.on('disconnect', function(){ //Your Code Here });
Hope it will help you.