core/relay: add outbound and inbound getters

This commit is contained in:
Micooz 2018-01-14 22:19:12 +08:00
parent fea32ea227
commit 4a208d2b4f

@ -123,6 +123,16 @@ export class Relay extends EventEmitter {
}
}
// getters
getOutbound() {
return this._outbound;
}
getInbound() {
return this._inbound;
}
// hooks of pipe
onBroadcast(action) {