The session initialization options.

interface IOptions {
    clientId?: string;
    kernelConnectionOptions?: Omit<
        Kernel.IKernelConnection.IOptions,
        "username"
        | "serverSettings"
        | "model"
        | "clientId",
    >;
    model: Session.IModel;
    serverSettings?: ServerConnection.ISettings;
    sessionAPIClient?: ISessionAPIClient;
    username?: string;
    connectToKernel(
        options: Kernel.IKernelConnection.IOptions,
    ): Kernel.IKernelConnection;
}

Properties

clientId?: string

The unique identifier for the session client.

kernelConnectionOptions?: Omit<
    Kernel.IKernelConnection.IOptions,
    "username"
    | "serverSettings"
    | "model"
    | "clientId",
>

Kernel connection options

Session model.

serverSettings?: ServerConnection.ISettings

The server settings.

sessionAPIClient?: ISessionAPIClient

The session API client.

username?: string

The username of the session client.

Methods