UNPKG

@zkp2p/reclaim-witness-sdk

Version:

<div> <div> <img src="https://raw.githubusercontent.com/reclaimprotocol/.github/main/assets/banners/Attestor-Core.png" /> </div> </div>

17 lines (16 loc) 560 B
import { CreateTunnelRequest } from '../../proto/api'; import { IAttestorClient, MakeTunnelFn } from '../../types'; export type TCPTunnelCreateOpts = { /** * The tunnel ID to communicate with. */ tunnelId: CreateTunnelRequest['id']; client: IAttestorClient; }; /** * Makes a tunnel communication wrapper for a TCP tunnel. * * It listens for messages and disconnect events from the server, * and appropriately calls the `onMessage` and `onClose` callbacks. */ export declare const makeRpcTcpTunnel: MakeTunnelFn<TCPTunnelCreateOpts>;