Websocket endpoint
Hi all, is it possible to expose a websocket endpoint in Convex?
Code snippet from express we're trying to emulate
7 Replies
@ballingt I noticed another thread mentioning a new protocol you were working on
It's not possible to expose a custom websocket from a Convex backend. Does the LLM provider not have a webhook as an option?
We're implementing voice calls so we'd like to respond back with our LLM decision quickly
do you suggest another provider that you've seen people use?
To be clear. Convex does not currently let you expose a custom websocket endpoint from something like
happy-animal-123.convex.site
like we do for https.
Tom is simply working on replacing the python client to use the rust client underneath which uses websockets. So that may have felt related but is unrelated.
Some other folks have had luck using fly.io to host a websocket server.sounds good we'll explore that and connect to our db with the python client
We're implementing voice calls so we'd like to respond back with our LLM decision quicklyHave you found http webhook latency to be too slow here? Especially if there’s an api to respond with the reply I haven’t had issues. Eg twilio call api for phone calls uses http and I’ve had good luck with it
We'll give that a shot too