Lesson
Intercept WebSocket Server Events with MSW
Listen to the actual WebSocket server events using Mock Service Worker.
- Access
- Included
- Transcript
- Needs source
Now that we have the connection to the actual WebSocket server established, we can listen to any events sent from the server to the client. The thing is, our event handler in MSW will receive those events before the client does.