Proposal: Support for grpc-web
Currently htmx supports AJAX, WebSockets, SSE, but not grpc-web.
I think that would be very useful. I also think it's possible to use grpc-web using some kind of event-based workaround, but it would be great to have first-class support.
I apologize if there's already an issue on grpc-web or a documented way to do grpc-web with htmx, I just did not find it.
Cheers!
+1
https://htmx.org/extensions/#defining
It could be done through extending htmx , it would probably have to be extended anyway in order to serialize/deserialize any grpc messages.
I could be wrong but grpc and protocol buffers requiring serialization/deserialization don't seem to fit the vision of hypermedia?
I could be wrong but
grpcand protocol buffers requiring serialization/deserialization don't seem to fit the vision of hypermedia?
It's true, but same can be said about WebSockets for example. Should be ok as long as it serves html.
+1
Hi everyone. I'm trying to create example using gRPC and htmx extension, but don't know how I can paste my response from backend into DOM (here).
My knowledge of Javascript is not sufficient to complete this example. Help pls)).
Upd: I received string(html) from gRPC,and call selectAndSwap method from htmx.js api. And it's work!
+1
ahh.. i was just thinking this and it would be the new standard XD