Last active
December 12, 2019 06:58
-
-
Save Sawtaytoes/011dc73fce1f6cf54728f7c0e44cf18e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 connectToWebSocketServiceEpic = ( | |
action$, | |
) => ( | |
action$ | |
.pipe( | |
ofType(APP_STARTED), | |
map( | |
connectToServer({ | |
hostname: 'example.com', | |
port: 3000, | |
protocol: 'ws', | |
protocolVersion: 'v1', | |
}) | |
), | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment