Documentation
    Preparing search index...

    Interface WebrtcServiceOptions

    Options for createWebrtcService.

    interface WebrtcServiceOptions {
        close?: (
            sessionId: string,
            reason: string | undefined,
            context: WebrtcServiceContext,
        ) => void | Promise<void>;
        destroyWindow?: (windowId: string) => void;
        open?: (
            request: WebrtcOpenRequest,
            context: WebrtcServiceContext,
        ) => WebrtcOpenResult | Promise<WebrtcOpenResult>;
        send?: (
            sessionId: string,
            payload: unknown,
            context: WebrtcServiceContext,
        ) => void | Promise<void>;
    }
    Index

    Properties

    close?: (
        sessionId: string,
        reason: string | undefined,
        context: WebrtcServiceContext,
    ) => void | Promise<void>

    Host-owned WebRTC close hook.

    destroyWindow?: (windowId: string) => void

    Optional host cleanup when a napplet window is destroyed.

    open?: (
        request: WebrtcOpenRequest,
        context: WebrtcServiceContext,
    ) => WebrtcOpenResult | Promise<WebrtcOpenResult>

    Host-owned WebRTC open hook.

    send?: (
        sessionId: string,
        payload: unknown,
        context: WebrtcServiceContext,
    ) => void | Promise<void>

    Host-owned WebRTC send hook.