papi-dts
    Preparing search index...

    Interface IRpcLocalClientAcceptorExperimental

    An RPC handler that can serve a client whose socket was created by the caller rather than accepted from the websocket server. Only the process that owns the server (main) implements this; it is how a renderer's MessagePort-backed connection joins the same registry as the websocket clients.

    interface IRpcLocalClientAcceptor {
        acceptLocalClient(socket: ServerSocketLike, name: string): void;
    }

    Implemented by

    Index

    Methods

    • Experimental

      Start serving socket as a client of this process's RPC server.

      Parameters

      • socket: ServerSocketLike

        The server end of the client's connection

      • name: string

        Label for this client in log lines, in place of the incrementing websocket number

      Returns void

      If this handler is not currently accepting clients