How do I simulate perhaps a slow connection where the web socket might be stuck in WebSocket.CONNECTING
#2449
Unanswered
sfc-gh-jtjhin
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi. Yeah, we might want to support async listeners, too. That's already a thing for HTTP requests in Interceptors. Shouldn't be a big task to add that support for WebSocket. Mostly comes down to swapping May I please ask you to open a feature request for it in here https://github.com/mswjs/interceptors/issues/new? Thank you! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think this would require the on
connection
listener be an async function?The use case is that we've implemented our own re-try logic that has a timeout if the web socket is stuck in connecting. And I would like to write tests for it
Beta Was this translation helpful? Give feedback.
All reactions