MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / sendNetMessage

Function sendNetMessage

frontend/src/store/modules/process.ts:223–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221 };
222
223 const sendNetMessage = () => {
224 if (!isWsOpen()) {
225 return;
226 }
227
228 if (pendingRequestType !== null) {
229 queuedRequestType = 'net';
230 return;
231 }
232
233 if (isNetFetching.value) {
234 return;
235 }
236
237 doSendMessage('net');
238 };
239
240 const startPolling = (type: 'ps' | 'net', interval = 3000, initialDelay = 0) => {
241 stopPolling();

Callers 2

sendInitialFunction · 0.85
startPollingFunction · 0.85

Calls 2

isWsOpenFunction · 0.85
doSendMessageFunction · 0.85

Tested by

no test coverage detected