Add no-op #connect and #start methods to built-ins

This commit is contained in:
Andrew Stewart 2014-09-08 09:31:16 -07:00
parent cf643d9d70
commit b48f5c3a57
2 changed files with 8 additions and 0 deletions

View File

@ -20,4 +20,8 @@ module.exports = Loopback = function Loopback() {
Utils.subclass(Loopback, Adaptor);
Loopback.prototype.connect = function(callback) {
callback();
};
Loopback.adaptor = function(opts) { return new Loopback(opts); };

View File

@ -26,6 +26,10 @@ Ping.prototype.ping = function() {
return "pong";
};
Ping.prototype.start = function(callback) {
callback();
};
Ping.driver = function(opts) {
return new Ping(opts);
};