connections
Description
Usage
import { share } from 'rxjs/operators';
import { ws, connections } from '@bottlenose/rxws';
const websocketParams = {
url: 'wss://mysite.com',
};
const ws$ = ws(websocketParams).pipe(share()); // create a websocket Subject
const connection$ = ws$.pipe(
connections()
);
connection$.subscribe(() => console.log('You have reconnected to the server!'));
// This would log events whenever the client connects to the serverAPI
connections()Since
Parameters
Options
Returns
Last updated