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');