MCPcopy Index your code
hub / github.com/bugy/script-server / isWebsocketClosed

Function isWebsocketClosed

web-src/src/common/utils/common.js:328–330  ·  view source on GitHub ↗
(websocket)

Source from the content-addressed store, hash-verified

326}
327
328export function isWebsocketClosed(websocket) {
329 return ((websocket.readyState === 2) || (websocket.readyState === 3));
330}
331
332export function isWebsocketConnecting(websocket) {
333 return (websocket.readyState === 0)

Callers 2

ReactiveWebSocketFunction · 0.90
isSocketActiveFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected