conduit
Description
Usage
import { from } from 'rxjs';
import { conduit } from '@bottlenose/rxws';
const messagesToSend$ = from([
{body: 'data'},
{body: 'more data'},
]);
const socketResponse$ = messageToSend$.pipe(
conduit({url: 'wss://mysite.com'})
);
socketResponse$.subscribe(); // this will attempt to send the messages to the serverAPI
Since
Parameters
Options
Returns
Last updated