UNPKG

@reclaimprotocol/attestor-core

Version:

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

17 lines (16 loc) 582 B
import type { CreateTunnelRequest } from '../../proto/api.ts'; import type { IAttestorClient, MakeTunnelFn } from '../../types/index.ts'; 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>;