-
Notifications
You must be signed in to change notification settings - Fork 21
WebSocket support #172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Until we deal with either #166 or #170, I think the answer here is yes, the spec talks about "network requests" in a way that doesn't take their integration (or lack of) with fetch into account. And I think that if we do resolve #166 by integrating more tightly with fetch, then WebSocket fetches would still participate in NEL, either by setting the NEL header in their responses, or by generating reports on failure. So still yes, on both questions. |
Is there a specific place in the spec that you think this could be clearer? Happy to patch in some text if you have some. |
I think if #166 is resolved in favour of using Fetch, then the issue resolves itself. If not, it might be useful to add some extra words at that point. |
I'm going to write my understanding of how to specify
I think this mostly works for However, for Does that look right @ricea? Or am I missing something? |
https://websockets.spec.whatwg.org/#concept-websocket-establish step 1 converts "ws" and "wss" URLs to "http" and "https", so that's all the Fetch spec ever sees. The Chromium implementation takes a different approach and only modifies the URL for the bits of code that need it. |
Mike wrote:
@ricea wrote:
I guess my point is that for a |
But, if this is the intended state of the world, works for me. |
I think I don't understand your point. How would you end up with a request with a mode of |
Oh, I don't know. I'm just learning this stuff. :) Thanks for the answers. |
This is related to issue #170, but I wanted to create a separate issue specifically for clarifying the behaviour around WebSockets.
My question is, are "wss" and "https" URLs considered equivalent for Network Error Logging? The Fetch Standard considers "wss" and "https" equivalent for cookies and other purposes (see https://websockets.spec.whatwg.org/#concept-websocket-establish), but it's not clear to me from the NEL standard whether that applies here.
Concretely:
The text was updated successfully, but these errors were encountered: