News for hackers. Stuff that matters.
Re:How Convex Works by Lt_Riza_Hawkeye on Sunday April 14, 2024 @04:12PM (#40034050)
Curious about the choice to send requests with WebSocket connections instead of just plain old POST forms. This precludes anyone with javascript disabled from using any of these sites. I don't think there's anything in the business logic preventing it
Re:How Convex Works by ikhare on Sunday April 14, 2024 @04:48PM (#40034349)
You can use http directly for your functions [1]. Or you can create custom http actions [2]. We encourage websocket usage because it allows for reactivity and UI consistency and it plays nicely with reactive frontend frameworks like React etc.

[1] https://docs.convex.dev/http-api/#functions-api [2] https://docs.convex.dev/functions/http-actions

Re:How Convex Works by Lt_Riza_Hawkeye on Monday April 15, 2024 @10:02AM (#40040669)
Thank you!
Re:How Convex Works by nextworddev on Sunday April 14, 2024 @04:14PM (#40034062)
That’s worrisome actually given how brittle web sockets are
Re:How Convex Works by thomasballinger on Sunday April 14, 2024 @04:53PM (#40034388)
HTTP handlers for requests can be defined, many Convex apps define these to handle webhook notifications and some apps consist primarily of these endpoints or app-specific REST APIs. (I work at Convex)

Edit: simultaneous post with my manager