From b91aa464afb04d6b655d526fa1c2eb69c7977eee Mon Sep 17 00:00:00 2001 From: Matt DiMeglio Date: Wed, 13 Aug 2025 01:43:35 -0400 Subject: [PATCH] API Key Passthrough WebSocket --- contexts/WebSocketContext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contexts/WebSocketContext.js b/contexts/WebSocketContext.js index f9354ca..9a4a54c 100644 --- a/contexts/WebSocketContext.js +++ b/contexts/WebSocketContext.js @@ -20,7 +20,7 @@ export const WebSocketProvider = ({ children }) => { } console.log(`🔁 Connecting (Attempt ${reconnectAttempts.current + 1}/${maxReconnectAttempts})`); - ws.current = new WebSocket(`${process.env.EXPO_PUBLIC_WS_URL}/callfeed`); + ws.current = new WebSocket(`${process.env.EXPO_PUBLIC_WS_URL}/callfeed?apiKey=${process.env.EXPO_PUBLIC_DATABASE_API_KEY}`); ws.current.onopen = () => { console.log('✅ WebSocket connected');