During SDK testing, it’s often useful to simulate real-world conditions or inspect communication between a client and a backend service. This lightweight local proxy helps developers spy on and inject both HTTP and WebSocket traffic for more effective debugging, experimentation, and test automation.
- Spy on Outgoing HTTP Requests
- Modify Incoming HTTP Responses
- Spy on Outgoing WebSocket Messages
- Modify Incoming WebSocket Messages
- Inject WebSocket Messages
- Validate SDK behavior against specific message sequences.
- Simulate dropped or malformed responses.
- Replay server messages for automated or regression testing.
- Monitor raw protocol-level activity to catch subtle bugs or race conditions.
🚀 Getting Started
Install npm dependency:
npm i -D @ably-labs/local-proxy