ReviewOS

home-lang/home

Complete Bun WebSocket client conformance matrix

#410
Closed chris opened this 10 days ago ·
10 days ago

Parent: #66

Port Bun corpus position 4222 (js/web/websocket/websocket.test.js).

Scope:

  • local and public echo connection behavior over ws/wss/http/https
  • local TLS trust/rejectUnauthorized semantics and 1015 close reporting
  • Bun server address records
  • FIFO text/binary delivery before close
  • invalid HTTP upgrade handling and 1002 close reporting
  • caller-preserved raw header casing
  • WebSocket subprocess lifecycle, timeout, SIGTERM, and invalid URL behavior
  • bounded TLS option allocation/error paths
  • RFC close-code/reason/wasClean matrix, including abnormal transport close
  • deterministic permanent pin for the exact 44-assertion upstream file
  • structured URL, TLS, handshake, and subprocess diagnostics with operation/phase/context/cause/source stacks

Acceptance: 44 passed, 0 todo, 0 failed, 0 unsupported, 0 allowed-empty.

Implementation: c7cae4c

10 days ago

Implemented and pushed to main in c7cae4c.

Verified the exact Bun corpus file: 44 passed, 0 todo, 0 failed, 0 unsupported, 0 allowed-empty. The permanent focused gate also passes the exact file plus six structured WebSocket error regressions for subprotocol, Unix URL, request protocol, TLS verification, URL parsing, and handshake stack composition.

Sign in to comment on this issue.