MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / updateConnectionStatus

Function updateConnectionStatus

web/scripts/ragnar_modern.js:738–753  ·  view source on GitHub ↗
(connected)

Source from the content-addressed store, hash-verified

736 socket.on('scan_error', function(data) {
737 handleScanError(data);
738 });
739
740 socket.on('deep_scan_update', function(data) {
741 handleDeepScanUpdate(data);
742 });
743
744 socket.on('lynis_update', function(data) {
745 handleLynisUpdate(data);
746 });
747
748 socket.on('manual_attack_update', function(data) {
749 handleManualAttackUpdate(data);
750 });
751
752 socket.on('connect_error', function(error) {
753 reconnectAttempts++;
754 console.error('Connection error:', error);
755 if (reconnectAttempts === RECONNECT_WARNING_THRESHOLD) {
756 addConsoleMessage('Reconnecting to server… still attempting to reach backend', 'warning');

Callers 3

initializeSocketFunction · 0.70
rebootSystemFunction · 0.70
shutdownSystemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected