(connected)
| 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'); |
no outgoing calls
no test coverage detected