Interface IMakeDisposeParams

Interface for the parameters of the makeAutoDispose function.

interface IMakeDisposeParams {
    onDestroy?: (clientId: string, swarmName: string) => void;
    timeoutSeconds: number;
}

Properties

onDestroy?: (clientId: string, swarmName: string) => void

Optional callback invoked when the session is closed. Called after the auto-dispose mechanism triggers and the session is successfully disposed.

timeoutSeconds: number