API Key Passthrough WebSocket

This commit is contained in:
Matt DiMeglio 2025-08-13 01:43:35 -04:00
parent 1b8533d192
commit b91aa464af

View file

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