MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / reconnect

Function reconnect

app/composables/useConnector.ts:157–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155 }
156
157 async function reconnect(): Promise<boolean> {
158 if (!config.value) return false
159 return connect(config.value.token, config.value.port)
160 }
161
162 function disconnect() {
163 config.value = null

Callers 1

useConnector.tsFile · 0.85

Calls 1

connectFunction · 0.85

Tested by

no test coverage detected