WebSocket Command Channel (#2782)

This commit is contained in:
Shuchang Zheng
2025-06-25 02:37:26 +08:00
committed by GitHub
parent b8f560728b
commit 6b5699a98c
9 changed files with 938 additions and 384 deletions

View File

@@ -0,0 +1,11 @@
import { create } from "zustand";
type ClientIdStore = {
clientId: string;
};
const initialClientId = crypto.randomUUID();
export const useClientIdStore = create<ClientIdStore>(() => ({
clientId: initialClientId,
}));