From 87044a747b47bd83249d61a45842c7f7b2eae56d Mon Sep 17 00:00:00 2001 From: soryu Date: Sun, 11 Jan 2026 05:52:14 +0000 Subject: Contract system --- makima/frontend/src/hooks/useWebSocket.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'makima/frontend/src/hooks/useWebSocket.ts') diff --git a/makima/frontend/src/hooks/useWebSocket.ts b/makima/frontend/src/hooks/useWebSocket.ts index 961951f..c593621 100644 --- a/makima/frontend/src/hooks/useWebSocket.ts +++ b/makima/frontend/src/hooks/useWebSocket.ts @@ -214,12 +214,13 @@ export function useWebSocket(options: UseWebSocketOptions = {}) { }, []); const startSession = useCallback( - (sampleRate: number, channels: number = 1) => { + (sampleRate: number, channels: number = 1, contractId?: string | null, authToken?: string | null) => { sendMessage({ type: "start", sampleRate, channels, encoding: "pcm32f", + ...(contractId && authToken ? { contractId, authToken } : {}), }); }, [sendMessage] -- cgit v1.2.3