MCPcopy
hub / github.com/dthree/vantage / Vantage

Function Vantage

lib/index.js:15–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13var repl = require("vorpal-repl");
14
15function 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
43Vantage.prototype = Object.create(Vorpal.prototype);
44

Callers 10

client.jsFile · 0.85
mode.jsFile · 0.85
hacker-news.jsFile · 0.85
websvr.jsFile · 0.85
dbsvr.jsFile · 0.85
hapi.jsFile · 0.85
firewall.jsFile · 0.85
koa.jsFile · 0.85
server.jsFile · 0.85
express.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected