ijpiantanida / talkback

A simple HTTP proxy that records and playbacks requests
MIT License
284 stars 41 forks source link

WebSocket Support #29

Open rijnhard opened 5 years ago

rijnhard commented 5 years ago

Any way to use this to record an replay for websocket interactions?

ijpiantanida commented 5 years ago

Currently talkback doesn't support websockets.

I'm not sure how it should handle websocket connections, since there's no request/response context that can be used to delimit the different interactions (unless your app's protocol defines one).

What I imagine talkback could do would be to play back all response messages in the order they were received, but I'm not sure that would be very useful.

What did you have in mind?

rijnhard commented 5 years ago

Thats pretty much what I had in mind, but to use either the timing or ordering of messages as the key to the responses. If the messages were sent as X and then immediately we received Y and Z then for the test If X sent, then respond with Y then Z for example, because we can tell who sent and received, and there can be an order to the interaction. The only trick (I think) is that it's not 1-1.

On Mon, 3 Jun 2019 at 05:20, Ignacio Piantanida notifications@github.com wrote:

Currently talkback doesn't support websockets.

I'm not sure how it should handle websocket connections, since there's no request/response context that can be used to delimit the different interactions (unless your app's protocol defines one).

What I imagine talkback could do would be to play back all response messages in the order they were received, but I'm not sure that would be very useful.

What did you have in mind?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ijpiantanida/talkback/issues/29?email_source=notifications&email_token=ABAXP2B7MCIXQGUX3VCS34LPYSEYNA5CNFSM4HSCM64KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWYGNDQ#issuecomment-498099854, or mute the thread https://github.com/notifications/unsubscribe-auth/ABAXP2EEYOQLTVT4WFLNU6DPYSEYNANCNFSM4HSCM64A .