🆕 Disconnection handler, when you got disconnected you automatic go back to the room

This commit is contained in:
duckietm
2026-03-19 15:04:47 +01:00
parent eee289e8f2
commit 5aef7a3de2
16 changed files with 498 additions and 87 deletions
@@ -5,6 +5,7 @@ import { IMessageEvent } from './IMessageEvent';
export interface IConnection
{
init(socketUrl: string): void;
dispose(): void;
ready(): void;
authenticated(): void;
send(...composers: IMessageComposer<unknown[]>[]): void;
@@ -7,5 +7,6 @@ export interface IRoomSessionManager
createSession(roomId: number, password?: string): boolean;
startSession(session: IRoomSession): boolean;
removeSession(id: number, openLandingView?: boolean): void;
tryRestoreSession(): boolean;
viewerSession: IRoomSession;
}