Read if:
You wanna learn how to use SocketIO with SvelteKit.
Resources
SvelteKit: Docs
SocketIo: Docs
Vite: Docs
Exten...
For further actions, you may consider blocking this person and/or reporting abuse
Eagerly waiting for the 2nd part
Thanks you for your support. I'll try as soon as possible to write second part after i cover all the sveltekit changes.
I'm looking forward to this
Anyone aware of a github repo with this setup?
Or a github with expressjs server integrated with sveltekit?
I'm trying to spin my own cutom express server but I get errors. It seems that the handlers.js is not passing anything to the expressjs once I add app.use(handlers) after I require handlers.js on top of the express server file of course.
This repo use to be live haven't worked again but you can use it for guide
Going through this in 2023 just wondering is they a better way to do this now? Or ..
It depends on your need. What you wanna work in what is goal with it.
Just for real time conversation on An online platform.
Is it possible without using expressjs like one of the +server files or something similer
not yet. We have to extend it to use web-sockets. It works only for node adapter.
Thanks for the reply..
This is not so good, there is no way to get your sicketio instance into the apps server side code.
the example works but how would I send a server side message from an api call in svelte to all in a room? i need to get access to the io object for this... how can I share it an svelte api?
You can this out