Solid-start/sockets only in development mode
Hi everyone!
I'm using Solid-Start and am creating an API route with the following code:
It works in development mode (npm run dev), but when I do
npm run build && npm run start
, I can't connect to the socket server. For example, Chrome gives me:
WebSocket connection to 'ws://localhost:3000/api/boards' failed: Invalid frame header
Can you help me?
EDIT: I've added
to my nitroconfig and the error disappears. However, the messages don't seem to be received by the server0 Replies