MCPcopy 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
332export function isWebsocketConnecting(websocket) {
333 return (websocket.readyState === 0)
334}
335
336export function isWebsocketOpen(websocket) {
337 return !isNull(websocket) && (websocket.readyState === 1);

Callers 1

ReactiveWebSocketFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected