Hey team, I'm trying to migrate my app from partykit to Rivet on Vercel functions.
I need to accept a media stream from Twilio. I can't seem to figure out how this is best done in Rivet.
I have a Convex backend and NextJS api routes as possible backend solutions - neither one is capable of upgrading a WebSocket request.
In Partykit this is handled by the CF Worker and the fetch is forwarded to the Durable Object. I don't want to have to run a Cloudflare Worker just to upgrade the websocket but it seems like that may be required for this use case?
I thought about providing the Rivet endpoint directly to Twilio, but there's no way to tell Twilio to use the protocols required by Rivet.