MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / constructor

Method constructor

lib/tasks/server/express-server.js:14–25  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

12
13class ExpressServerTask extends Task {
14 constructor(options) {
15 super(options);
16 this.emitter = new EventEmitter();
17 this.express = this.express || require('express');
18 this.http = this.http || require('http');
19 this.https = this.https || require('https');
20
21 let serverRestartDelayTime = this.serverRestartDelayTime || 100;
22 this.scheduleServerRestart = debounce(function () {
23 this.restartHttpServer();
24 }, serverRestartDelayTime);
25 }
26
27 on() {
28 this.emitter.on.apply(this.emitter, arguments);

Callers

nothing calls this directly

Calls 1

restartHttpServerMethod · 0.95

Tested by

no test coverage detected