Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help : is theren delegate method like nodejs zeromq ( sock.on .. ) #20

Open
yunchiri opened this issue Nov 17, 2017 · 0 comments
Open

Comments

@yunchiri
Copy link

yunchiri commented Nov 17, 2017

is there delegate method like nodejs zeromq

function sock.on(..)

( sock.on .. )

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

sock.connect('tcp://127.0.0.1:3000');
sock.subscribe('kitty');
console.log('Subscriber connected to port 3000');

sock.on('message', function(topic, message) {
console.log('received a message related to:', topic, 'containing message:', message);
});

@yunchiri yunchiri changed the title help help : is theren delegate method like nodejs zeromq ( sock.on .. ) Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant