kernl API
    Preparing search index...

    Function createDirectConnectionsService

    • The webrtc service: applets open direct sessions with other people.

      Each window gets kehto's WebRTC service over createDirectSignaling, signing under the window's own key. kehto opens a session only through the runtime's approval step, which kernl supplies here instead of kehto's permission authority: the window's applet must hold the webrtc grant, the person is asked once per session, and the session's work stops when the window ends, its grant changes or the person says no (D-042). Upstream gap: kehto's ACL has no capability for webrtc, so the grant is checked here, not by the ACL.

      Parameters

      • options: DirectConnectionsOptions

        Pool, relays, identities, ICE servers, peer factory and the grant and consent hooks.

      Returns ServiceHandler

      The service handler to register as webrtc.

      registry.webrtc = createDirectConnectionsService({ pool, relays, identities, iceServers: [], createPeer, appletOf, isGranted, ask });