Skip to content

Instantly share code, notes, and snippets.

@praveen001
Created July 22, 2019 10:39
Show Gist options
  • Save praveen001/79c8e210d5508dfc7a8d4741436afd75 to your computer and use it in GitHub Desktop.
Save praveen001/79c8e210d5508dfc7a8d4741436afd75 to your computer and use it in GitHub Desktop.
Redux Observable WebSocket
const sendMessageEpic = action$ =>
action$.ofType(WebsocketActionTypes.SEND_MESSAGE).map(action => {
webSocketSubject.next(action.payload);
return sentMessage();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment