Field Notes
    Preparing search index...

    Interface ManagedSyncTransport

    Transport contract the managed lifecycle requires. WebSocketTransport satisfies it. A custom factory must produce a transport that reconnects transient closes internally and permanently terminates on any close code for which isTerminalClose returns true, otherwise the transport and the manager would compete over the same failure.

    interface ManagedSyncTransport {
        close(): void;
        onClose(handler: (code: number, reason: string) => void): () => void;
        onMessage(handler: (message: string) => void): () => void;
        onReconnect(handler: () => void): () => void;
        send(message: string): void;
    }

    Hierarchy (View Summary)

    Index