---
title: "Browser and WebSocket | Speedscale Docs"
description: "Choose a workflow for Playwright browser journeys, browser traffic capture, or WebSocket recording, replay, and mocking."
canonical: "https://docs.speedscale.com/guides/browser-and-websocket/"
---

[Documentation index](https://docs.speedscale.com/guides/llms.txt) | [Markdown](https://docs.speedscale.com/guides/browser-and-websocket/index.md) | [Canonical page](https://docs.speedscale.com/guides/browser-and-websocket/)

# Browser and WebSocket

Choose the workflow by what you want to verify. You can start on your machine with proxymock and use the same recordings in a Speedscale Cloud replay on a registered Kubernetes cluster.

| I want to | On my machine with proxymock | In Kubernetes or Speedscale Cloud |
| --- | --- | --- |
| Verify what a user can do in the UI, with recorded or live API responses | Record or write a Playwright journey, then run `proxymock replay --browser`. | Start a browser replay with the Kubernetes CLI path, the Cloud CLI path, or the dashboard. Inspect steps, API calls, web vitals, and failure artifacts. |
| Capture the network calls a browser makes so I can inspect or mock them | Route a browser through `proxymock record`, then serve the recording with `proxymock mock`. | Record a browser journey locally and [push the recording and journey to Cloud](https://docs.speedscale.com/guides/browser-journeys/run-in-cluster/#from-the-dashboard) when you want to reuse them from a snapshot. |
| Check a WebSocket service for message regressions or behavior under load | Record an inbound session, then use `proxymock replay` against the service. To stand in for a downstream socket, record the outbound session and run `proxymock mock`. | Capture a session into a snapshot, then run a regression or load replay from the dashboard. Use the responder when a workload needs a recorded WebSocket dependency. |

<a id="choose-a-guide"></a>

## Choose a guide

*   [Test a frontend from local recording to Cloud replay](https://docs.speedscale.com/guides/browser-journeys/local-to-cloud/). Use the mock-lab demo shop to replay journeys with recorded and live API responses, find the cause of each failure, heal a renamed button, and read the runs in Speedscale Cloud.
*   [Capture browser traffic with proxymock](https://docs.speedscale.com/guides/browser/). Set up a Firefox proxy and inspect or mock the recorded calls.
*   [Test WebSockets with proxymock](https://docs.speedscale.com/guides/websocket/proxymock/). Replay a captured session against a service and serve the same exchange as a dependency mock.
*   [Test WebSockets in Speedscale Cloud](https://docs.speedscale.com/guides/websocket/cloud/). Capture a snapshot, run replays, and inspect the handshake and messages.

<a id="what-browser-journeys-can-do"></a>

## What browser journeys can do

| Task | What you get | Read more |
| --- | --- | --- |
| Write journeys | Record a journey with `proxymock record --browser`, explore a recorded user session into a spec, or describe a journey in plain language with `proxymock journeys create`. | [Write journeys](https://docs.speedscale.com/guides/browser-journeys/write-journeys/), [Explore and heal journeys](https://docs.speedscale.com/guides/browser-journeys/explore-and-heal/) |
| Sign in | Storage state, fresh tokens per run, several roles and users, authenticator codes, passkeys, and single sign-on. | [Start signed in](https://docs.speedscale.com/guides/browser-journeys/write-journeys/#start-signed-in) |
| Isolate the frontend | Answer the frontend's API calls from the recording, including calls to its own origin, or send them to the real APIs and name the calls that changed. | [Mocks and real APIs](https://docs.speedscale.com/guides/browser-journeys/mocks-and-real-apis/) |
| Run anywhere | Your machine, a cluster from your kubeconfig, a registered cluster through Speedscale Cloud, the dashboard, CI, preview deployments, and coding agents over MCP. | [Where journeys run](https://docs.speedscale.com/guides/browser-journeys/#where-journeys-run) |
| Cover more browsers | Your own `playwright.config`, Chromium, Firefox and WebKit, devices, retries, video, and sharding across CI jobs. | [Playwright config and run settings](https://docs.speedscale.com/guides/browser-journeys/playwright-config/) |
| Check more than clicks | Web vitals goals, screenshot and ARIA snapshot baselines, and axe accessibility scans. | [Screenshots and ARIA snapshots](https://docs.speedscale.com/guides/browser-journeys/playwright-config/#screenshots-and-aria-snapshots), [Accessibility scans](https://docs.speedscale.com/guides/browser-journeys/playwright-config/#accessibility-scans) |
| Find the cause | Each step tied to the API calls it made, the likely cause of a failure, screenshots, videos, and traces in Playwright's trace viewer. | [Read the results](https://docs.speedscale.com/guides/browser-journeys/read-results/) |
| Keep journeys healthy | Pass history, flaky detection and quarantine, locator heal with a pull request, model-assisted recovery during a run, and screenshot review in a pull request. | [Run journeys on your machine](https://docs.speedscale.com/guides/browser-journeys/run-locally/#compare-runs), [Explore and heal journeys](https://docs.speedscale.com/guides/browser-journeys/explore-and-heal/) |

<a id="what-websocket-testing-can-do"></a>

## What WebSocket testing can do

| Task | What you get | Read more |
| --- | --- | --- |
| Capture | The upgrade and every text, binary, and control message in both directions, linked to its connection. | [How Speedscale captures WebSocket traffic](https://docs.speedscale.com/guides/websocket/#how-speedscale-captures-websocket-traffic) |
| Regression test | A fresh handshake per virtual user, recorded client messages sent in order, and each live server message compared with the recording. | [Replaying WebSocket sessions](https://docs.speedscale.com/guides/websocket/#replaying-websocket-sessions) |
| Load test | Many virtual users, each with its own connections, through proxymock or a Speedscale Cloud load config. | [Load testing](https://docs.speedscale.com/guides/websocket/#load-testing) |
| Mock a dependency | The responder accepts the client's upgrade, checks its messages, and sends the recorded server messages, including pushes. | [Mocking WebSocket endpoints](https://docs.speedscale.com/guides/websocket/#mocking-websocket-endpoints) |

Playwright journeys check what the browser renders and how it behaves. WebSocket traffic replays check the upgrade and message exchange against a service. Start with the corresponding workflow, then add the other when you need both kinds of evidence.
