UNPKG

@reclaimprotocol/attestor-core

Version:

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

8 lines (7 loc) 281 B
import type { WebSocket as WSWebSocket } from 'ws'; export declare function makeWebSocket(url: string): WebSocket; /** * Adds the "sendPromise" fn to the given WebSocket instance, * if not already present. */ export declare function promisifySend(ws: WSWebSocket): WSWebSocket;