kernl API
    Preparing search index...

    Function multiplayerModule

    • Applets reaching other people's software: remote tools, the cvm domain, and direct connections, the webrtc domain, each window under its own key (D-041, D-042, D-043). The person's own choices of servers and tool families are kernl.multiplayer. Direct connections are offered only where the page can make peer connections, and every session is put to the person. Without this module neither domain is offered and the shell never asks about a session.

      Parameters

      Returns KernlModule<"multiplayer", KernlMultiplayer>

      The module; its api is KernlMultiplayer.

      const kernl = createKernl({ host, modules: [multiplayerModule({ remoteTools: { relays: ['wss://tools.example'] } })] });
      kernl.multiplayer.state();