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

Allow async rules #2

Open
robertklep opened this issue Sep 26, 2016 · 0 comments
Open

Allow async rules #2

robertklep opened this issue Sep 26, 2016 · 0 comments

Comments

@robertklep
Copy link
Owner

For example, to match connections where the client doesn't send any handshake data (wait for a second, when a handshake was sent, don't match, otherwise do):

.addAsyncRule(dataPromise => {
  return new Promise((resolve, reject) => {
    setTimeout(resolve, 1000);
    dataPromise.then(reject);
  });
}, debugPort);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant