Re: [whatwg/fetch] Confusing integration with Fetch API (Issue #1849)

tete17 left a comment (whatwg/fetch#1849)

Sorry I didn't express myself very well.

My problem while trying to implement the standard in Ladybird is that the wording in section [2.2 Opening handshake](https://websockets.spec.whatwg.org/#websocket-opening-handshake) makes it sound like Websocket is implemented on top of the Fetch as step 11 says: `[Fetch](https://fetch.spec.whatwg.org/#concept-fetch) request with [useParallelQueue](https://fetch.spec.whatwg.org/#fetch-useparallelqueue) set to true, and [processResponse](https://fetch.spec.whatwg.org/#process-response) given response being these steps:`

To me this sounds like I we should based our Websocket implementation around the Fetch api calls but it can't be right as it has no mechanism to send extra data like Webhooks should.

The part that confuses me is that reading part of the spec I get the feeling the Webhook Class should have a private member class that implements the webhook protocol at the network level but it should use Fetch apis at the same time.

I hope I have made my concern a bit more clear

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1849#issuecomment-3188736157
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1849/3188736157@github.com>

Received on Thursday, 14 August 2025 14:49:14 UTC