binance_bot/node_modules/binance/lib/util/ws-utils.d.ts
2025-01-07 19:06:55 +01:00

8 lines
255 B
TypeScript

import WebSocket from 'isomorphic-ws';
/**
* #168: ws.terminate() is undefined in browsers.
* This only works in node.js, not in browsers.
* Does nothing if `ws` is undefined.
*/
export declare function safeTerminateWs(ws: WebSocket | unknown): void;