T
TanStack3w ago
afraid-scarlet

WebSocket endpoint in TanStack Start

Hi, is there any possibility to create an endpoint (/api/v2/websocket in my case), for live communication in TanStack Start? I tried endlessly with no luck using nitro shenanigans. Hope someone could help. PS: Please ping me if you respond to me. Thanks.
6 Replies
fascinating-indigo
fascinating-indigo3w ago
not so likely here's a thread with info @andrei https://discord.com/channels/719702312431386674/1396019452566573168
afraid-scarlet
afraid-scarletOP3w ago
not good, since my app will be heavily live comms reliant does that mean i need to switch frameworks?
fascinating-indigo
fascinating-indigo3w ago
depends on your environment, i think nitro might have some sort of support? you could also ask in the router channel, there might be progress there
afraid-scarlet
afraid-scarletOP3w ago
tried endlessly with nitro, it doesnt let me modify its http server. starting it manually also doesnt help since that only leads to only error 500
ambitious-aqua
ambitious-aqua3w ago
In theory you could check the Bun adaptor to see if you can achieve something similar with Nitro, since start its just a fetch handler you can probably have a endpoint that uses WS and forward anything else to tanstack
afraid-scarlet
afraid-scarletOP3w ago
thanks, I’ll check

Did you find this page helpful?