@akanass/rx-socket-client
Version:
Reconnectable websocket client with RxJS Subject
11 lines (10 loc) • 464 B
TypeScript
import { RxSocketClientConfig, RxSocketClientSubject } from './rx-socket-client.subject';
/**
* Returns new instance of RxSocketClientSubject
*
* @param {string | RxSocketClientConfig} urlConfigOrSource the source of the rxSocketClient as an url or
* a structure defining the rxSocketClient object
*
* @return {RxSocketClientSubject}
*/
export declare function rxSocketClient<T>(urlConfigOrSource: string | RxSocketClientConfig): RxSocketClientSubject<T>;