How to implement h2/h3 for Direct Sockets TCPServerSocket that behaves like ServiceWorker/WindowClient??

707 views
Skip to first unread message

guest271314

unread,
Apr 20, 2024, 10:26:08 AM4/20/24
to blink-network-dev
I wrote a little HTTP over TCP server for Direct Sockets TCPServerSocket here How to use the browser as an HTTP over TCP socket server.

What I am trying to do now is implement HTTP/2/HTTP/3 on that connection that behaves the same as between a ServiceWorker and a WindowClient on Chromium, which as far I can see is the only shipped implementation of full-duplex streaming using fetch() in a browser; for example typing lowercase letters in this plnkr Half duplex stream streams the response to the client without waiting for the WritableStream side of a TransformStream to be closed. 

How would I go about implementing this in Chrome?
Reply all
Reply to author
Forward
0 new messages