Dear imgui as an webapplication #5428
Replies: 2 comments 6 replies
-
I don't think there's really any one method of communication that is best here (definitely nothing that's already integrated), it mostly comes down to your own preference and what your team is comfortable working with. Depending on your exact needs, you might actually check out one of the various third-party remoting frameworks. This skips needing to do your own data exchange entirely because UI submission happens on the embedded device and all the client does is the final rendering of the vertex data. (Downside of this approach is you'll end up sending a lot more data to the client, upside is you don't have to deal with defining a protocol between the client and server.) |
Beta Was this translation helpful? Give feedback.
-
Hey, this is a good question and unfortunately, I found a solution too late to help you since I just started my work term and tried to do this with an embedded device. the best solution I found is WebSockets!!!! full-duplex asynchronous with emscripten compiled js and very light weight on the embedded device. |
Beta Was this translation helpful? Give feedback.
-
I am planning to write an webapplication for an embedded device that will allow to login on the device, make settings and visualize several parameters in real time using gauges and charts. Dear imgui (even it is promoted more for gaming), when compiled with emscripten, seems to be a very good fit for what I plan to do. However, this imgui and wasm is new for me and so far I couldn't find what is the best way to have a reliable and fast communication between the imgui client and some backend service that will facilitate this data exchange. gRPC, protobuf, WebSockets, DDS? Is there anything already available/integrated? I just don't want to reinvent the wheel.
Probably the question was more suitable for a thread related to WebAssembly. :(
Anyway, thanks and good luck,
Bob.
Beta Was this translation helpful? Give feedback.
All reactions