Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ZeroMQ in javascript client

Have anyone used ZmqSocket.js successfully? I'd like to know how can it be used to establish a safe channel between the browser and a zeromq server app. Is there other/better options for such use case?

like image 665
Carlo Pires Avatar asked Nov 16 '11 00:11

Carlo Pires


1 Answers

I started looking into a solution to use a web browser for a UI.

I have a Java application that collects information from several sources, analyses it a stores the results in a database, allowing other systems to the information.

The Java app provides information (logs, events, and so on) on a PUSH ZMQ socket and provides a REP socket to control it (changing parameters, diagnosis requests, etc).

I currently have a Python app with a UI using Tk and I plan to replace it with a web interface.

The problem I have with the ZMQ JavaScript biding is that it uses a flash component, which is not supported by iOS.

Doing a bit of Googoling I found a post titled "Interacting With ZeroMQ From the Browser" that uses NullMQ

I hope this helps.

like image 161
jschiavon Avatar answered Oct 13 '22 11:10

jschiavon