fabric8io / mockwebserver

An extension of okhttp's mockwebserver, that provides a DSL and is easier to use
Apache License 2.0
113 stars 38 forks source link

Ability to send messages through webSocket when receiving a http request #37

Closed alexmiragall closed 5 years ago

alexmiragall commented 5 years ago

when we are mocking messages through a webSocket, we can send messages based on a socket received message (using expect) or on a timer (using waitFor). I think we cannot expect an http request and given that send a message through the webSocket. Do you know if there is a workaround for this? In the system we are testing, the requests sent by the client are using normal http request and the webSocket is just sending the responses.

alexmiragall commented 5 years ago

I've sent a pull request with these changes #38