You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logs on client side are printed simultaneously after stream is closed. Error message comes out immediately after stream close also. src/routes/+page.svelte:
<scriptlang="ts">
import {onMount} from "svelte";
onMount(() =>{constevtSource=newEventSource("/stream",{withCredentials: true,});evtSource.onmessage=(event)=>{console.log(newDate())console.log(event.data);};evtSource.onerror=console.error;});
</script><div></div>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
With Stream plugin integrated with sveltekit server routes,
Elysia.handle
seems not streaming stream response.src/routes/[...slugs]/+server.ts
:Logs on client side are printed simultaneously after stream is closed. Error message comes out immediately after stream close also.
src/routes/+page.svelte
:Any hint on this?
Beta Was this translation helpful? Give feedback.
All reactions