fooOnYou
fooOnYou

Reputation: 698

BeagleBone -> HTML -> C++ communication

I've successfully configured my beaglebone to host a website, now I'd like to enable the website viewer to communicate with a C++ program running on the beaglebone as well. I have done some reading and have a few ideas, but I don't have a solid conceptualization of the pieces that I'll need so I am looking for some advice.

I'd like two way communications, and I would like low latency, and limited restrictions on the type of data I tx/rx.

I've done some reading on WebSockets, which look to provide what I want, but I am struggling to understand how I get a WebSocket running in my C++ program, and if there's a middle man (WebSocket server?).

Please let me know if you have any advice or suggested reading for me as I work through this problem.

Upvotes: 2

Views: 785

Answers (1)

oberstet
oberstet

Reputation: 22051

You might be interested in AutobahnCpp. That can be used to do the following architecture:

Your C++ Component <--WAMP-over-RawSocket--> WAMP Router <-- WAMP-over-WebSocket --> Browser

WAMP allows bidirectional real-time messaging: remote procedure calls and publish & subscribe.

E.g. you could visualize data coming from C++ in real-time in a browser. Or you could call into C++ from JavaScript in the browser.

Here are some pointers:

Upvotes: 2

Related Questions