MCPcopy Create free account
hub / github.com/nodejs/node / isConnecting

Function isConnecting

deps/undici/src/lib/web/websocket/util.js:12–16  ·  view source on GitHub ↗

* @param {number} readyState * @returns {boolean}

(readyState)

Source from the content-addressed store, hash-verified

10 * @returns {boolean}
11 */
12function isConnecting (readyState) {
13 // If the WebSocket connection is not yet established, and the connection
14 // is not yet closed, then the WebSocket connection is in the CONNECTING state.
15 return readyState === states.CONNECTING
16}
17
18/**
19 * @param {number} readyState

Callers 2

failWebsocketConnectionFunction · 0.70
sendMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected