简体   繁体   中英

Is real-time communication possible with a react front-end and C++ executable

I'm working with a biometric kit for a project. The kit has a simple desktop app to just take the biometric data and save the files as an image. But it has a C++ SDK so you can implement your own communication solution. I want to save the data to my back-end server instead of the computer so am thinking to rebuild the desktop app as a web app and write a C++ server to broadcast events (like real-time finger movements etc...) from the kit to the front-end (react) through the browser which will submit it with other form data.

Am not even sure if my idea is possible technically but if it is what would be the best way to broadcast real-time events from my C++ server to the front-end react app? Or should I just build a desktop app and submit the form from there?

You can use restbed library. That library let you handle and send HTTP request's. Github link of the library : https://github.com/Corvusoft/restbed/blob/master/documentation/API.md?ysclid=l5v20puzjb198752037

I am using that library and in my opinion, it is very easy to use and understand. Also, restbed supply very good performance compared to others.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM