MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / setPort

Function setPort

src/stores/apiServer.ts:308–318  ·  view source on GitHub ↗
(port: number)

Source from the content-addressed store, hash-verified

306 }
307
308 async function setPort(port: number) {
309 loading.value = true
310 try {
311 status.value = await transport.setPort(port)
312 await fetchConfig()
313 } catch (err) {
314 console.error('[ApiServerStore] Failed to set port:', err)
315 } finally {
316 loading.value = false
317 }
318 }
319
320 async function regenerateToken() {
321 try {

Callers

nothing calls this directly

Calls 3

fetchConfigFunction · 0.85
setPortMethod · 0.80
errorMethod · 0.65

Tested by

no test coverage detected