Add no-op #connect and #start methods to built-ins
This commit is contained in:
parent
cf643d9d70
commit
b48f5c3a57
|
@ -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); };
|
||||
|
|
|
@ -26,6 +26,10 @@ Ping.prototype.ping = function() {
|
|||
return "pong";
|
||||
};
|
||||
|
||||
Ping.prototype.start = function(callback) {
|
||||
callback();
|
||||
};
|
||||
|
||||
Ping.driver = function(opts) {
|
||||
return new Ping(opts);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue