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

1.x can only notify. ignore client and server callback function. #24

Open
wants to merge 14 commits into
base: 1.x
Choose a base branch
from

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