MCPcopy Create free account
hub / github.com/astercloud/aster / disconnect

Function disconnect

ui/src/composables/useAsterClient.ts:242–248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240
241 // 断开连接
242 const disconnect = () => {
243 if (ws.value) {
244 ws.value.disconnect();
245 ws.value = null;
246 isConnected.value = false;
247 }
248 };
249
250 // 生命周期
251 onUnmounted(() => {

Callers 1

useAsterClientFunction · 0.70

Calls 1

disconnectMethod · 0.45

Tested by

no test coverage detected