🆙 Stage 1 reconnect

This commit is contained in:
duckietm
2026-03-20 16:06:03 +01:00
parent 5aef7a3de2
commit 958693fe2e
4 changed files with 301 additions and 17 deletions
+7
View File
@@ -52,6 +52,13 @@ 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);
this.processEvent(event);