MCPcopy Create free account
hub / github.com/bytebase/bytebase / setConnState

Function setConnState

frontend/src/react/components/monaco/lsp-client.ts:76–83  ·  view source on GitHub ↗
(patch: Partial<ConnectionState>)

Source from the content-addressed store, hash-verified

74};
75
76const setConnState = (patch: Partial<ConnectionState>) => {
77 Object.assign(conn, patch);
78 connectionSnapshot = {
79 state: conn.state,
80 heartbeat: conn.heartbeat,
81 };
82 emit();
83};
84
85const setHeartbeat = (patch: Partial<ConnectionState["heartbeat"]>) => {
86 Object.assign(conn.heartbeat, patch);

Callers 5

connectFunction · 0.85
handleErrorFunction · 0.85
connectWebSocketFunction · 0.85
reconnectFunction · 0.85
executeCommandFunction · 0.85

Calls 1

emitFunction · 0.70

Tested by

no test coverage detected