@nebius/js-sdk - v0.2.54
    Preparing search index...

    Interface KeepaliveOptions

    Configures gRPC keepalive.

    Explicit options override the NEBIUS_GRPC_KEEPALIVE_* environment variables. When you supply an options object, omitted fields use SDK defaults instead of environment values. Set KeepaliveOptions.timeMs to 0, or set SDKOptions.keepalive to false, to disable keepalive.

    Keepalive pings help detect a broken connection during a long-lived process. A server or network can reject pings that are too frequent.

    import { SDK } from '@nebius/js-sdk';

    const sdk = new SDK({
    keepalive: {
    timeMs: 30_000,
    timeoutMs: 10_000,
    permitWithoutStream: true,
    },
    userAgentPrefix: 'example-application/1.0',
    });
    interface KeepaliveOptions {
        permitWithoutStream?: boolean;
        timeMs?: number;
        timeoutMs?: number;
    }
    Index
    permitWithoutStream?: boolean

    Specifies whether to send keepalive pings without an active call.

    timeMs?: number

    Sets the keepalive interval in milliseconds.

    timeoutMs?: number

    Sets the keepalive timeout in milliseconds.