-
-
Notifications
You must be signed in to change notification settings - Fork 580
Closed
Description
Is it possible to use msw to mock server-sent events (SSE) and WebSocket (WS) connections?
My use case is to have a somewhat full client-side mocking story (including REST, SSE, and WS functionality), and since msw is such a joy to use when mocking out REST APIs, I was wondering if it makes sense to use it to mock more specialised server interactions.
Have you thought about this? I admit that I haven't looked much into whether it's possible just to use custom request handlers to add this functionality, emulating SSE and WS behaviour in some way. I wanted to know if you already had something in mind regarding this question. Thanks!
kettanaito, incadoi, gxbsst, robertrbairdii, yujingz and 91 morecannalee90, nelli91, igtm, ken7253 and jiyeol-lee