qbit-rpc
    Preparing search index...

    Type Alias RpcConnect

    RpcConnect: (target: RpcConnectTarget) => Duplex | Promise<Duplex>

    Opens a new byte stream to target for one connection, such as a tunnel through an HTTP CONNECT or SOCKS proxy. The client runs TLS over it, with every check, and HTTP over that. It must return a new stream, connected or connecting, on every call, stop when target.signal fires, and give up on its own when the proxy does not answer: the client opens at most maxConcurrentRequests plus one connections through it at once for reads, and as many again for side-effecting calls. Keep an error listener on a stream until it is returned: the client sees a stream only then, and its error before that has nowhere else to go.

    Type Declaration