Page Contents

Home > @loopback/rest > RestServerResolvedOptions > listenOnStart

RestServerResolvedOptions.listenOnStart property

Set this flag to false to not listen on connections when the REST server is started. It’s useful to mount a LoopBack REST server as a route to the facade Express application. If not set, the value is default to true.

Signature:

listenOnStart?: boolean;