[Bug 21147] WebSocket API could provide a method to get the HTTP response code when it's not 101

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21147

--- Comment #6 from IƱaki Baz Castillo <ibc@aliax.net> ---
I can imagine the following usecase:

- A website offers to visitors WebSocket access to a thirdy party provider
(i.e. via the inclusion of JS code provided by the WS service).

- But the website has not payed to the WS provider during last months so its
"LICENSE_KEY" is not valid anymore.

- The visitor tries to use the WS service. The JS code attempts a WS connection
to "ws://service-provider.net?LICENSE_KEY=qwuyt87qghe" and gets a 403 "Not
Authorized".

- The JS code then shows it to the web user in a friendly way.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 4 March 2013 09:54:07 UTC