(feat) Bring your own UDP socket and WASM compilation target #4
guest271314
started this conversation in
General
Replies: 1 comment 3 replies
|
@endel How do I create an object file of the |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've been trying to builda WebTransport server in the browser for a while now. The idea is to use Direct Sockets UDPSocket, compile a WebTranport library to WASM or JavaScript that uses only Web API's.
Ideally everything should work the same. The TLS/QUIC/WebTransport libraries just get passed data from UdpSocket readable (Uint8Array) and get back the raw data to evaluate in JavaScript. Then JavaScript can pass data back to the WASM/JavaScript implementation and get back a TLS/QUIC/WebTransport packet to write to UDPSocket.
What I've tried so far:
fails-components/webtransport#354
https://github.com/guest271314/quinn-wasm/tree/direct-sockets
toyobayashi/emnapi#178
Related: vmeansdev/webtransport-bun#12
All reactions