UNPKG

@reclaimprotocol/attestor-core

Version:

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

13 lines (12 loc) 439 B
import type { WebSocket as WSWebSocket } from 'ws'; /** * Default WebSocket implementation, uses `ws` package * for Node.js and the native WebSocket for the browser & other * environments. */ export declare function makeWebSocket(url: string): WebSocket | WSWebSocket; /** * Adds the "sendPromise" fn to the given WebSocket instance, * if not already present. */ export declare function promisifySend(ws: WSWebSocket): WSWebSocket;