import { ConnectionStatus, DuplexConnection, Frame, ISubject, ISubscriber, ISubscription, CONNECTION_STATUS } from 'rsocket-types'; import { Flowable } from 'rsocket-flowable'; import { deserializeFrame, deserializeFrameWithLength, Encoders, printFrame, serializeFrame, serializeFrameWithLength, toBuffer, } from 'rsocket-core'; import * as ws from 'ws'; /** * A WebSocket transport client for use in browser environments. */ export default class RSocketWebSocketClient implements DuplexConnection { constructor(options: ws.ClientOptions, encoders?: Encoders) close(): void; connect(): void; connectionStatus(): Flowable; receive(): Flowable; sendOne(frame: Frame): void; send(frames: Flowable): void; }