An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/NimbleArchitect/webtransport-go

Package webtransport provides a lightweight WebTransport-over-HTTP/3 server implementation in Go. WebTransport (https://www.w3.org/TR/webtransport/) is a 21st century replacement for WebSockets. It's currently supported by Chrome, with support in other browsers coming shortly. Neither WebTransport nor HTTP/3 are standardized yet. We adhere to: draft-ietf-quic-http-34 https://datatracker.ietf.org/doc/html/draft-ietf-quic-http-34 and draft-ietf-webtrans-http3-02 https://datatracker.ietf.org/doc/html/draft-ietf-webtrans-http3-02 You can find a complete server (and browser client) example here: https://github.com/adriancable/webtransport-go-example Here's a minimal server example to get you going. First, you'll need to create a certificate, as explained in the comments here: https://github.com/GoogleChrome/samples/blob/gh-pages/webtransport/webtransport_server.py Set up the WebTransport server parameters: Then, set up an http.Handler to accept a session, wait for an incoming bidirectional stream from the client, then (in this example) receive data and echo it back: Finally, start the server: Here is a simple Chrome browser client to talk to this server. You can open a new browser tab and paste it into the Chrome DevTools console:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/%21nimble%21architect/webtransport-go
License: MIT
Latest release: about 3 years ago
First release: about 3 years ago
Namespace: github.com/NimbleArchitect
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 5 days ago

    Loading...
    Readme
    Loading...