UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

16 lines (14 loc) 707 B
import * as Pusher from 'pusher-js' import { Observable } from 'rxjs' import { combineEpics, ActionsObservable } from 'redux-observable' import { Store } from 'redux' import { RootState } from '../reducers' // todo // export const subscribeToJobState = // (action$: ActionsObservable<any>, store: Store<RootState>): Observable<any> => // action$.ofType(PUSHER_CONNECTION_SUCCESS) // .mergeMap((action: PusherConnectAction) => { // const freq = store.getState().frequencies.flags.selectedFrequencies // return Object.keys(freq).map(f => // ({ type: PUSHER_SUBSCRIBE_CHANNEL, channel: f, events })) // })