🆙 Automatic resume / reconnect when conection was lost

This commit is contained in:
duckietm
2026-03-23 13:24:32 +01:00
parent 531ea1c33d
commit 4701c0b153
3 changed files with 8 additions and 163 deletions
-2
View File
@@ -52,11 +52,9 @@ export class EventDispatcher implements IEventDispatcher
{
if(!event) return false;
// Debug: log SOCKET_ events to trace reconnection flow
if(event.type && event.type.startsWith('SOCKET_'))
{
const listenerCount = this._listeners.get(event.type)?.length ?? 0;
console.log('[EventDispatcher] Dispatching ' + event.type + ' (listeners: ' + listenerCount + ')');
}
NitroLogger.events('Dispatched Event', event.type);