Servers - Adding methods after instantiation.
jacktuck opened this issue · 1 comments
jacktuck commented
Is it possible to add methods to the server once instantiated?
Something like this, perhaps:
var zerorpc = require("zerorpc");
var server = new zerorpc.Server();
server.add('addMan', function(sentence, reply) {
reply(null, sentence + ", man!");
})
If not currently possible, would you be open to a PR to add such functionality?
bombela commented
It is not possible, and not intended to be. When a service is running, its API shouldn't change. That's a design decision to keep things simpler across languages.
Why would you want such functionality? What are you trying to achieve?