Skip to content

Conversation

@whtiehack
Copy link

@whtiehack whtiehack commented May 5, 2016


// remote service

module.exports = function(context) {
  return {
    echo: function(msg, cb) {
      cb(null, 'echo: ' + msg);
    },
    onlynotify:function(msg,cb){
    //cb is undefined.
      console.log('receive notify..:',cb,msg);
    }
  };
};
//client

 client.proxies.user.test.service.onlynotify(routeParam, msg[Math.round(Math.random()*(10-1))] + '::' + id++);
//no callback function

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

Successfully merging this pull request may close these issues.

1 participant