Hacker News new | past | comments | ask | show | jobs | submit login

Thanks! I need to do more research on the available HTML over the wire protocols. In principle Hyperdiv can easily send HTML strings instead of its custom JSON format.



Cool! Is there somewhere I can learn about the custom JSON format? Its possible that I’m just wary because I’m unfamiliar.


It’s not explicitly documented yet. I should do that.

The dom sent over the wire is very similar to html but it’s json.

Then the diff is a json that indicates whether to add children and at which index, whether to remove children and at which index and how many, and attributes to update. This is the part I’m unsure of there being an analogue in protocols like htmx.

Easiest way to see it in action currently is to run a Hyperdiv app, open chrome dev tools and watch the websocket traffic on /ws




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: