tracks lexicons and how many times they appeared on the jetstream
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(client): use wss/https in prod

dusk 8a4a46f2 a207054b

+6 -2
+6 -2
client/src/routes/+page.svelte
··· 82 82 const connectToStream = async () => { 83 83 if (isStreamOpen) return; 84 84 websocketStatus = "connecting"; 85 - websocket = new WebSocket(`ws://${PUBLIC_API_URL}/stream_events`); 85 + websocket = new WebSocket( 86 + `${dev ? "ws" : "wss"}://${PUBLIC_API_URL}/stream_events`, 87 + ); 86 88 websocket.binaryType = "arraybuffer"; 87 89 websocket.onopen = () => { 88 90 console.log("ws opened"); ··· 133 135 try { 134 136 error = null; 135 137 136 - const response = await fetch(`http://${PUBLIC_API_URL}/events`); 138 + const response = await fetch( 139 + `${dev ? "http" : "https"}://${PUBLIC_API_URL}/events`, 140 + ); 137 141 if (!response.ok) { 138 142 throw new Error(`HTTP error! status: ${response.status}`); 139 143 }