4 ms·
Where is Mozilla getting the readyState value of 3 from?
- johnnyApplePRNG 5y agow3.org only mentions valid values of 0, 1 and 2? [0] [0] https://www.w3.org/TR/2009/WD-websockets-20091222/#dom-websocket-readystate https://www.w3.org/TR/2009/WD-websockets-20091222/#dom-webso...
- readflaggedcomm 5y agoThat's from 2009, and pops up a notice: This version is outdated! For the latest version, please look at https://www.w3.org/TR/websockets/. The current version does contain show a "CLOSED" state with value 3.
- johnnyApplePRNG 5y agoHad javascript disabled so I didn't see that popup. What a shame on a site that documents html! Thanks for pointing me in the right direction.
- readflaggedcomm 5y agoIt's in the WhatWG standard, linked on that page: https://html.spec.whatwg.org/multipage/web-sockets.html#the-websocket-interface https://html.spec.whatwg.org/multipage/web-sockets.html#the-... under "The readyState attribute represents the state of the connection. It can have the following values:"