Expand description
Murmur WASM - WebAssembly probe runtime.
This crate provides browser-side probes that can measure network timing from within a web page. It uses the Fetch API and Performance APIs to capture timing data.
§Capabilities
In WASM, we can:
- Make HTTP/HTTPS requests via Fetch API
- Measure request timing (DNS, TCP, TLS, TTFB)
- Access Navigation Timing and Resource Timing APIs
- Read network connection information
We cannot:
- Make raw TCP/UDP connections
- Send ICMP packets (ping/traceroute)
- Access low-level network interfaces
§Usage
import init, { probe_url, get_timing } from 'murmur-wasm';
await init();
const result = await probe_url('https://example.com');
console.log(result);Structs§
- Wasm
Connection Info - Network connection information.
- Wasm
Navigation Timing - Navigation timing data.
- Wasm
Probe Result - Probe result from a WASM fetch.
- Wasm
Resource Timing - Resource timing entry.
Functions§
- get_
connection_ info - Get network connection information.
- get_
navigation_ timing - Get navigation timing data for the current page.
- get_
resource_ timings - Get all resource timing entries.
- log
- Console log helper for debugging.
- probe_
url - Probe a URL using the Fetch API.