T
TanStack3mo ago
stormy-gold

Using sockets tanstack start

does anyone know how to access serverFn specific context within vite plugins i wanna pass context via a vite plugin (to allow my serverFn to have access to socket.io) I have the socket.io server working and that just need to figure out how to tie that into tanstack starts context. I currently have this which might do a beter job at explaining it https://github.com/nick22985/tanstsackstart-socketio
2 Replies
continuing-cyan
continuing-cyan3mo ago
This is a bit weird, you are adding the socketio app to the vite dev server using configureServer in a Vite plugin. This will only ever work during development no?
stormy-gold
stormy-goldOP3mo ago
ahh yea ig that not the way toi do it. Trying to figure out a way to do it lol

Did you find this page helpful?