SA
Thank you Linus, meanwhile i was able to figure out how to deal with it. Following Matija´s tutorial (https://joyofcode.xyz/using-websockets-with-sveltekit) i just swapped the code from svelte.config.js to vite.config.js like this: which is actually the way you proposed. let´s keep on SvelteKitting ;)