UNPKG

it-ws

Version:

Simple async iterables for websocket client connections

8 lines 353 B
import type { DuplexWebSocket } from './duplex.js'; import type { SinkOptions } from './sink.js'; import type { ClientOptions } from 'ws'; export interface WebSocketOptions extends SinkOptions { websocket?: ClientOptions; } export declare function connect(addr: string, opts?: WebSocketOptions): DuplexWebSocket; //# sourceMappingURL=client.d.ts.map