diff options
| author | soryu <soryu@soryu.co> | 2026-01-11 05:52:14 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-15 00:21:16 +0000 |
| commit | 87044a747b47bd83249d61a45842c7f7b2eae56d (patch) | |
| tree | ef2000ce79ffcc2723ef841acef5aa1deb1d5378 /makima/frontend/src/hooks/useWebSocket.ts | |
| parent | 077820c4167c168072d217a1b01df840463a12a8 (diff) | |
| download | soryu-87044a747b47bd83249d61a45842c7f7b2eae56d.tar.gz soryu-87044a747b47bd83249d61a45842c7f7b2eae56d.zip | |
Contract system
Diffstat (limited to 'makima/frontend/src/hooks/useWebSocket.ts')
| -rw-r--r-- | makima/frontend/src/hooks/useWebSocket.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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] |
