Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // vite.config.js
- import { sveltekit } from "@sveltejs/kit/vite";
- const config = {
- plugins: [
- sveltekit(),
- {
- name: "sveltekit-socket-io",
- configureServer(server) {
- injectSocketIO(server.httpServer); // <- call the function here
- },
- },
- ],
- };
- export default config;
Advertisement
Add Comment
Please, Sign In to add comment