Skip to content

Instantly share code, notes, and snippets.

@Sawtaytoes
Last active December 12, 2019 06:58
Show Gist options
  • Save Sawtaytoes/011dc73fce1f6cf54728f7c0e44cf18e to your computer and use it in GitHub Desktop.
Save Sawtaytoes/011dc73fce1f6cf54728f7c0e44cf18e to your computer and use it in GitHub Desktop.
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