it-ws
Version:
Simple async iterables for websocket client connections
8 lines • 318 B
TypeScript
import type { Sink, Source } from 'it-stream-types';
import type { WebSocket } from 'ws';
export interface SinkOptions {
closeOnEnd?: boolean;
}
declare const _default: (socket: WebSocket, options: SinkOptions) => Sink<Source<Uint8Array>, Promise<void>>;
export default _default;
//# sourceMappingURL=sink.d.ts.map