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

Function setGlobalWebSocket

ui/src/composables/useWebSocket.ts:15–18  ·  view source on GitHub ↗
(ws: WebSocketClient | null)

Source from the content-addressed store, hash-verified

13
14// 设置全局 WebSocket 实例(供其他 composable 使用)
15export function setGlobalWebSocket(ws: WebSocketClient | null) {
16 wsInstance = ws;
17 isConnected.value = ws !== null;
18}
19
20export function useWebSocket() {
21 const connect = async (url: string) => {

Callers 1

initWebSocketFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected