MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / constructor

Method constructor

examples/rpc-server/src/rpc.server.ts:23–31  ·  view source on GitHub ↗
(
    @inject(CoreBindings.APPLICATION_INSTANCE) public app?: Application,
    @inject('rpcServer.config') public config?: RPCServerConfig,
  )

Source from the content-addressed store, hash-verified

21 expressServer: express.Application;
22
23 constructor(
24 @inject(CoreBindings.APPLICATION_INSTANCE) public app?: Application,
25 @inject('rpcServer.config') public config?: RPCServerConfig,
26 ) {
27 super(app);
28 this.config = config ?? {};
29 this.expressServer = express();
30 rpcRouter(this);
31 }
32
33 get listening() {
34 return this._listening;

Callers

nothing calls this directly

Calls 2

rpcRouterFunction · 0.90
injectFunction · 0.85

Tested by

no test coverage detected