Skip to content

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

Open
whtiehack wants to merge 14 commits intoNetEase:1.xfrom
whtiehack:1.x
Open

1.x can only notify. ignore client and server callback function.#24
whtiehack wants to merge 14 commits intoNetEase:1.xfrom
whtiehack:1.x

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