web-transport-echo-server

command module
v0.0.0-...-58fd144 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

README

WebTransport Echo Server

A tiny WebTransport echo server.

Browser Example

// get the server certificate hash
const res = await fetch('http://127.0.0.1:8000');
const hash = await res.text();
// connect using the self-signed certificate hash
const transport = new WebTransport('https://127.0.0.1:4443', {
  serverCertificateHashes: [
    { algorithm: 'sha-256', value: Uint8Array.fromHex(hash) }
  ]
});

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL