|
|
@ -50,13 +50,15 @@ var socket,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
socket.on('disconnect', function(data){
|
|
|
|
socket.on('disconnect', function(data){
|
|
|
|
app.alert({
|
|
|
|
setTimeout(function() {
|
|
|
|
alert_id: 'connection_alert',
|
|
|
|
app.alert({
|
|
|
|
title: 'Disconnect',
|
|
|
|
alert_id: 'connection_alert',
|
|
|
|
message: 'You have disconnected from NodeBB, we will try to reconnect!',
|
|
|
|
title: 'Disconnect',
|
|
|
|
type: 'error',
|
|
|
|
message: 'You have disconnected from NodeBB, we will try to reconnect!',
|
|
|
|
timeout: 5000
|
|
|
|
type: 'error',
|
|
|
|
});
|
|
|
|
timeout: 5000
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}, 500);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
socket.on('reconnecting', function(data) {
|
|
|
|
socket.on('reconnecting', function(data) {
|
|
|
|