/** * Adapted from rsocket-websocket-client * https://github.com/rsocket/rsocket-js/blob/e224cf379e747c4f1ddc4f2fa111854626cc8575/packages/rsocket-websocket-client/src/WebsocketClientTransport.ts#L17 * This adds additional error handling for React Native iOS. * This particularly adds a close listener to handle cases where the WebSocket * connection closes immediately after opening without emitting an error. */ import { ClientTransport, Closeable, Demultiplexer, DuplexConnection, FrameHandler, Multiplexer, Outbound } from 'rsocket-core'; import { ClientOptions } from 'rsocket-websocket-client'; export declare class WebsocketClientTransport implements ClientTransport { private readonly url; private readonly factory; constructor(options: ClientOptions); connect(multiplexerDemultiplexerFactory: (outbound: Outbound & Closeable) => Multiplexer & Demultiplexer & FrameHandler): Promise; }