TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Where is Mozilla getting the readyState value of 3 from?

2 pointsby johnnyApplePRNGalmost 4 years ago

2 comments

readflaggedcommalmost 4 years ago
It&#x27;s in the WhatWG standard, linked on that page: <a href="https:&#x2F;&#x2F;html.spec.whatwg.org&#x2F;multipage&#x2F;web-sockets.html#the-websocket-interface" rel="nofollow">https:&#x2F;&#x2F;html.spec.whatwg.org&#x2F;multipage&#x2F;web-sockets.html#the-...</a> under &quot;The readyState attribute represents the state of the connection. It can have the following values:&quot;
johnnyApplePRNGalmost 4 years ago
w3.org only mentions valid values of 0, 1 and 2? [0]<p>[0] <a href="https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;2009&#x2F;WD-websockets-20091222&#x2F;#dom-websocket-readystate" rel="nofollow">https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;2009&#x2F;WD-websockets-20091222&#x2F;#dom-webso...</a>
评论 #27790221 未加载