fromIO
Description
Usage
import { from } from 'rxjs';
import { fromIO } from '@bottlenose/rxsocketio';
// send messages over the WebSocket and receive messages back from it...
const ioEvent$ = fromIO({url: 'http://mysite.com'});
ioEvent$.subscribe(
console.log, // log all events from the socket.io manager
console.error,
() => console.log('Socket Closed!')
);Parameters
Options
Returns
Last updated