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

Function isWebsocketOpen

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

Source from the content-addressed store, hash-verified

334}
335
336export function isWebsocketOpen(websocket) {
337 return !isNull(websocket) && (websocket.readyState === 1);
338}
339
340export function getUnparameterizedUrl() {
341 return [location.protocol, '//', location.host, location.pathname].join('');

Callers 1

ReactiveWebSocketFunction · 0.90

Calls 1

isNullFunction · 0.85

Tested by

no test coverage detected