Last active
July 22, 2019 10:41
-
-
Save praveen001/e642b402af3f34d2989e0790f1da260b to your computer and use it in GitHub Desktop.
Redux Observable WebSocket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const disconnectEpic = (action$: ActionsObservable<PlaylistAction>) => | |
action$.ofType(WebsocketActionTypes.DISCONNECT).map(() => { | |
onCloseSubject.complete(); | |
webSocketSubject.complete(); | |
return disconnected(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment