How do you do rewrites for websockets on SvelteKit?

Is this possible via vercel.json or do you have to use a custom node server?