Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(websocket-replication): pass all websocket options to constructor #4449

Merged
merged 1 commit into from
Feb 18, 2023

Conversation

msotnikov
Copy link
Contributor

@msotnikov msotnikov commented Feb 18, 2023

This PR contains:

  • Ability to pass all websocket options to constructor. E.g. the custom http server.

Example usage:

import http from 'http'

  const port = 3030
  const server = http.createServer()

  const serverState = startWebsocketServer({
    database: db,
    server: server,
  })

  server.listen(port, () => {
    console.info(`Data stream server started on port ${port}`)
  })

@pubkey pubkey merged commit 23ba9bb into pubkey:master Feb 18, 2023
pubkey added a commit that referenced this pull request Feb 18, 2023
@pubkey
Copy link
Owner

pubkey commented Feb 18, 2023

Greate work, merged.

@msotnikov msotnikov deleted the ws-options branch February 20, 2023 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants