fix(frontend): remove hardcoded localhost from SSE connection

This commit is contained in:
spinline
2026-01-31 19:34:51 +03:00
parent ec7a00c490
commit e784a2dd42

View File

@@ -45,7 +45,7 @@ pub fn provide_torrent_store() {
// Initialize SSE connection
create_effect(move |_| {
spawn_local(async move {
let mut es = EventSource::new("http://localhost:3000/api/events").unwrap();
let mut es = EventSource::new("/api/events").unwrap();
let mut stream = es.subscribe("message").unwrap();
while let Some(Ok((_, msg))) = stream.next().await {