MCPcopy Create free account
hub / github.com/bugy/script-server / setConnection

Function setConnection

web-src/src/main-app/store/scriptConfig.js:112–120  ·  view source on GitHub ↗
({state, dispatch}, websocket)

Source from the content-addressed store, hash-verified

110 },
111
112 setConnection({state, dispatch}, websocket) {
113 const existingWebsocket = internalState.websocket;
114
115 if (!isNull(existingWebsocket) && !existingWebsocket.isClosed()) {
116 existingWebsocket.close();
117 }
118
119 internalState.websocket = websocket;
120 },
121
122 resendValues({state}) {
123 const websocket = internalState.websocket;

Callers

nothing calls this directly

Calls 2

isNullFunction · 0.90
closeMethod · 0.45

Tested by

no test coverage detected