Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bugy/script-server
/ isWebsocketConnecting
Function
isWebsocketConnecting
web-src/src/common/utils/common.js:332–334 ·
view source on GitHub ↗
(websocket)
Source
from the content-addressed store, hash-verified
330
}
331
332
export
function
isWebsocketConnecting(websocket) {
333
return
(websocket.readyState === 0)
334
}
335
336
export
function
isWebsocketOpen(websocket) {
337
return
!isNull(websocket) && (websocket.readyState === 1);
Callers
1
ReactiveWebSocket
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected