readIrohProxyProtocolV2
function readIrohProxyProtocolV2( socket, timeoutMs,maximumBytes?): Promise<ProxyProtocolV2IrohIdentity>;Defined in: src/launcher/proxy-protocol-v2.ts:268
Consume and parse the dedicated trusted Iroh PROXY/UNSPEC preamble.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
socket |
Socket |
undefined |
timeoutMs |
number |
undefined |
maximumBytes |
number |
DEFAULT_MAX_PROXY_V2_BYTES |
Returns
Section titled “Returns”Promise<ProxyProtocolV2IrohIdentity>
