@tigrcorn/wt-peer-probes
v0.1.7-dev.5
Published
Browser peer probes for validating tigrcorn WebTransport support across Chromium, Firefox, WebKit/Safari, and mobile peers.
Maintainers
Readme
tigrcorn WebTransport Peer Probes
Browser peer probes for validating tigrcorn WebTransport support directly, without capability discovery.
Probe contract
Endpoint:
https://api.example.com/__tigrcorn/probe/wtReport endpoint:
https://api.example.com/__tigrcorn/probe/wt/reportRequired pass stages:
api -> ready -> bidi -> unidi -> datagram -> closeInstall
npm install @tigrcorn/wt-peer-probesUse from TS/JS
import { runTigrcornWTPeerProbe } from "@tigrcorn/wt-peer-probes";
const report = await runTigrcornWTPeerProbe({
peerId: "chrome-desktop-01",
wtUrl: "https://api.example.com/__tigrcorn/probe/wt",
reportUrl: "https://api.example.com/__tigrcorn/probe/wt/report",
timeoutMs: 5000
});
console.log(report.ok, report);Expected tigrcorn behavior
On bidirectional stream:
{ "type": "probe.bidi.echo", "id": "...", "runId": "...", "peerId": "..." }Reply on the same stream:
{ "type": "probe.bidi.echo.ok", "id": "...", "runId": "...", "peerId": "..." }On client unidirectional stream:
{ "type": "probe.unidi.send", "id": "...", "runId": "...", "peerId": "..." }Reply on a server-created unidirectional stream:
{ "type": "probe.unidi.ack", "id": "...", "runId": "...", "peerId": "..." }On datagram:
{ "type": "probe.datagram.echo", "id": "...", "runId": "...", "peerId": "..." }Reply via datagram:
{ "type": "probe.datagram.echo.ok", "id": "...", "runId": "...", "peerId": "..." }Playwright peer matrix
npm run test:peer-apiProjects included:
Umbrella SSOT feature: feat:webtransport-peer-apis.
| Browser peer | SSOT feature | Runnable test |
| --- | --- | --- |
| Chromium | feat:webtransport-peer-probe-chromium | npm run test:peer-api -- --project=chromium |
| Firefox | feat:webtransport-peer-probe-firefox | npm run test:peer-api -- --project=firefox |
| WebKit/Safari | feat:webtransport-peer-probe-webkit | npm run test:peer-api -- --project=webkit |
| Mobile Chrome | feat:webtransport-peer-probe-mobile-chrome | npm run test:peer-api -- --project=mobile-chrome |
| Mobile Safari | feat:webtransport-peer-probe-mobile-safari | npm run test:peer-api -- --project=mobile-safari |
The peer API protocol test runs the package's browser entrypoint against a WebTransport-compatible peer harness and verifies the same Tigrcorn protocol messages used by the live endpoint: probe.bidi.echo, probe.unidi.send, and probe.datagram.echo.
Live endpoint probes are available when Tigrcorn is serving WebTransport:
TIGRCORN_WT_LIVE=1 TIGRCORN_ORIGIN=https://api.example.com npm run probe:playwrightSafari/WebKit failures are recorded as WT failures, not hidden behind WSS fallback.
