()
| 13 | var repl = require("vorpal-repl"); |
| 14 | |
| 15 | function Vantage() { |
| 16 | |
| 17 | var self = this; |
| 18 | |
| 19 | if (!(this instanceof Vantage)) { return new Vantage(); } |
| 20 | |
| 21 | Vorpal.call(this); |
| 22 | |
| 23 | // Banner to display on login to a system. If null, |
| 24 | // doesn't display a banner. |
| 25 | this._banner = void 0; |
| 26 | |
| 27 | // Vantage client connects to other instances |
| 28 | // of Vantage. |
| 29 | this.client = new VantageClient(this); |
| 30 | |
| 31 | // Vantage server receives connections from |
| 32 | // other vantages. Activated by vantage.listen(); |
| 33 | this.server = new VantageServer(this); |
| 34 | |
| 35 | // If authentication is used, it is called through this fn. |
| 36 | this._authFn = void 0; |
| 37 | |
| 38 | this._initIO(); |
| 39 | |
| 40 | return this; |
| 41 | } |
| 42 | |
| 43 | Vantage.prototype = Object.create(Vorpal.prototype); |
| 44 |
no outgoing calls
no test coverage detected