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