Fix: Hinzufügen von Protokollausgaben für empfangene Socket.io-Events in mehreren Views
Änderung: - In den Views BankView, DirectorView, FamilyView, HealthView, HouseView und NobilityView wurden Protokollausgaben hinzugefügt, um empfangene Daten von den Socket.io-Events 'falukantUpdateStatus' und 'familychanged' zu dokumentieren. - Diese Anpassung verbessert die Nachvollziehbarkeit der Datenaktualisierungen und erleichtert die Fehlersuche bei der Eventverarbeitung. Diese Änderungen sorgen für eine bessere Transparenz und Debugging-Möglichkeiten in der Anwendung.
This commit is contained in:
@@ -206,8 +206,14 @@ export default {
|
||||
methods: {
|
||||
setupSocketEvents() {
|
||||
if (this.socket) {
|
||||
this.socket.on('falukantUpdateStatus', this.loadFamilyData);
|
||||
this.socket.on('familychanged', this.loadFamilyData);
|
||||
this.socket.on('falukantUpdateStatus', (data) => {
|
||||
console.log('📨 FamilyView: falukantUpdateStatus empfangen:', data);
|
||||
this.loadFamilyData();
|
||||
});
|
||||
this.socket.on('familychanged', (data) => {
|
||||
console.log('📨 FamilyView: familychanged empfangen:', data);
|
||||
this.loadFamilyData();
|
||||
});
|
||||
console.log('✅ FamilyView: Socket.io Events registriert');
|
||||
} else {
|
||||
console.log('⚠️ FamilyView: Socket.io noch nicht verfügbar');
|
||||
|
||||
Reference in New Issue
Block a user