The network Protocol

interface Protocol {
    bindPort: ((prefix) => PromiseVow<Port>);
}

Properties

Properties

bindPort: ((prefix) => PromiseVow<Port>)

Claim a port, or if ending in ENDPOINT_SEPARATOR, a fresh name

Type declaration

    • (prefix): PromiseVow<Port>
    • Parameters

      • prefix: string

      Returns PromiseVow<Port>