You can also use JSMQ and ZWSSock. JSMQ is zeromq for javascript over websockets, ZWSSock is CZMQ implementation of websockets that can communicate with JSMQ.
You still need a proxy and a known address as webbrowser cannot do multicast or broadcast. You can read more here: https://github.com/zeromq/zwssock https://github.com/zeromq/JSMQ http://rfc.zeromq.org/spec:39 On Tue, Aug 4, 2015 at 1:33 PM, Arnaud Loonstra <[email protected]> wrote: > Hi Johan, > > A proxy would probably be the fastest path. We've been experimenting > with websockets and a proxy which works fine. Easiest would probably be > to create a ZyreNode containing a webserver which can provide the web > interface. With Pyre this is very simple. Here's an example of a > 'work-in-progress' node for use with ZOCP: > https://github.com/z25/ZOCPApps/blob/master/zwebsocket/zwebsocket.py > > Rg, > > Arnaud > > On 2015-08-04 08:56, Johan Philips wrote: > > Hi guys > > > > We have some robots in our lab running Zyre to discover each other > > and exchange data, which works great. Most of them use the C > > implementation and some use Pyre (Python binding). We would like to > > add a “web interface” to our lab which shows all available robots in > > the browser and give a user the ability to introspect the robots, get > > a live feed of its camera or laser scan data and send some basic > > commands. > > > > How could we combine this best with Zyre? The webpage would be HTML5 > > / Javascript and we would use JSON to serialise and model the data. > > I’ve noticed that there is a Node.js binding for ZeroMQ but not for > > Zyre (the node_zyre project [1] we found, does not seem to work, i.e. > > is still very experimental and not maintained anymore?). > > > > Is the best solution to run a C proxy with a Zyre node connecting to > > the robots and Router socket connecting to a Node.js running the > > javascript code or is this an unnecessary indirection? Alternatively > > we are thinking to run Pyre on the webserver and use Python instead > > of > > Node.js. > > > > Any expertise and advice from you on this front is more than welcome > > :-) > > > > > > Johan > > _______________________________________________ > > zeromq-dev mailing list > > [email protected] > > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
