Created
July 22, 2019 11:14
-
-
Save praveen001/ca43795f4489276f7f05dfebf83ae0eb 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
// Detect successfull connection by listening to onOpenSubject | |
const connectedEpic = action$ => | |
action$.ofType(WebsocketActionTypes.CONNECT).switchMap(() => | |
onOpenSubject.map(() => { | |
return connected(); | |
}) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment