@ezez/ws-server - v0.5.1
    Preparing search index...

    Type Alias Options<TContext>

    Options: [TContext] extends [Record<string, never>]
        ? EZEZServerOptions & ClientOptions & { defaultContext?: TContext }
        : EZEZServerOptions & ClientOptions & { defaultContext: TContext }

    Combined options for the WebSocket server, merging server-level options (from ws library) with client behavior options specific to @ezez/ws-server.

    Includes all options from EZEZServerOptions and ClientOptions.

    When the TContext generic is specified, defaultContext becomes a required field, used to seed each connected client's context (via structuredClone).

    Type Parameters

    • TContext extends object = Record<string, never>