3

I want to use ZeroMQ/ZMQ in react-js app to subscribe connection and monitor data response from python app .have you ever anyone to use this app in React and have an example when I use

var zmq = require('../');var sock = zmq.socket('sub');

error TypeError: zmq.zmqVersion is not a function

and failed project anyone can help me with this problem when I run example without React app its work correctly, but when I import in the project it's going to error.

3
  • Where are you importing zmq from ? Commented Jul 20, 2018 at 11:28
  • from source of zeromq js project http://zeromq.github.io/zeromq.js/ and another try I'm import from package of nom var zmq = require('zeromq') Commented Jul 20, 2018 at 11:58
  • @VikasYadav from Mohammad-reza1987: "from source of zeromq js project zeromq.github.io/zeromq.js and another try I'm import from package of nom var zmq = require('zeromq')" Commented Jul 22, 2018 at 11:19

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.