English فارسی

HAR verification

How the conference payloads were proved correct — and how you can re-run the proof yourself.

Method

A browser session was recorded to a .har file while creating a meeting and joining it. That file contains two WebSocket connections and 105 binary frames, base64-encoded. Every frame was decoded with the library's own envelope schema, then each request was re-encoded from a Python dict and compared byte-for-byte.

200 HTTP requests
105 WebSocket frames
 31 unique RPC calls

Results

MethodCapturedRe-encodedMatch
GenerateCallLink08010801identical
GetWssURL088b96d9f19eddf7ae37sameidentical
JoinGroupCall088b96d9f19eddf7ae3712050a0378797asameidentical
SetLinkTitle0a08d8b2d8b3d8b2d8b3120a088b96d9f19eddf7ae37sameidentical
Metadata (12 keys)——identical
Note on SetLinkTitle.

Its callId is wrapped as {value: …} while GenerateCallLink's is bare. The captured bytes prove which is which — a good example of why byte comparison beats reading docs.

Three real bugs the capture exposed

1. browser_version type

Sent as fixed64, should have been string. Also six mt_* keys and language were missing entirely.

2. Mixed key casing

to_dict() returned camelCase at the top level and snake_case deeper down. Consequence: create_conference looked up call["id"], never found it, and silently skipped link generation. Fixed by normalising every level.

3. startMultiPeerCall is not a protocol method

It lives in the JS bundle only. The real call is StartGroupCall with mode=3.

Reproducing the checks

python -m pytest tests/test_meet_capture.py -v

The fixture is a small JSON file with the raw hex, so the test needs no network and no HAR:

tests/data/meet_har.json
{
  "GenerateCallLink": {
    "wire": "0801",
    "payload": {"isPublic": true},
    "response": "…",
    "expect": {"link": "https://meet.bale.ai/i/zfqw-52pog-g5o5",
               "call_id": 3989589941225409291}
  },
  "metadata_keys": ["app_version", "browser_type", …]
}

Capturing your own

  1. Open web.bale.ai, open DevTools → Network, tick Preserve log.
  2. Create a meeting, join it, leave it.
  3. Right-click the request list → Save all as HAR with content.
  4. Decode frames and compare against dynamic.encode(...).
Scrub the HAR before sharing it.

Captures contain your access_token JWT, user id, display name and LiveKit room token. Strip them before pasting a capture into an issue.

bale xyz 1.0.0 · MIT licensed · unofficial client © 2026 bale xyz contributors