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

Add forwardWithCallback #169

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

pedrorfernandes
Copy link

I've created forwardWithCallback() in the style of mockWithCallback(), tried to make as minimal change as possible, could reuse some of the code in createExpectationWithCallback but opted to keep it all separate

The only difference in contract with mockWithCallback() is the requestAndResponseHandler, which if present triggers responseCallback: true. Don't know if there are other scenarios other than replying an HttpRequest and then a HttpResponse to the websocket but I can implement them if needed

If approach is approved I can look into testing and later updating the docs for the javascript example

@pedrorfernandes
Copy link
Author

missing implementation in WebSocketClient at mockServerClient.js

@pedrorfernandes
Copy link
Author

@jamesdbloom is it possible to merge and release this?

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.

1 participant