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

Wait for connection to be initialized #40

Merged
merged 2 commits into from
Nov 17, 2019

Conversation

michalkvasnicak
Copy link
Owner

@michalkvasnicak michalkvasnicak commented Nov 17, 2019

Introduces new optional setting waitForInitializiation: { retryCount?: number, timeout?: number } to createWsHandler().

  • retryCount how many times should the handler hydrate connection?
  • timeout how long should we wait until we hydrate connection again?

Closes #33

@michalkvasnicak michalkvasnicak self-assigned this Nov 17, 2019
@michalkvasnicak michalkvasnicak merged commit 63b390b into master Nov 17, 2019
@michalkvasnicak michalkvasnicak deleted the feature/wait-for-connection-initialization branch November 17, 2019 09:11
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.

Do not use connection phase if there is no onConnect handler or wait for resolution
1 participant