IModelJsExpressServer Class

An express web server with some reasonable defaults for web applications built with @bentley/webpack-tools.

note This server is not designed to be a hardened, secure endpoint on the public internet. It is intended to participate in a private HTTP exchange with a public-facing routing and provisioning infrastructure that should be supplied by the application's deployment environment.


Name Description
constructor(protocol: WebAppRpcProtocol): IModelJsExpressServer    
_configureHeaders(): void Protected    
_configureMiddleware(): void Protected    
_configureRoutes(): void Protected    
initialize(port: number | string): Promise<HttpServer> Configure the express application with necessary headers, routes, and middleware, then starts listening on the given port.  


Name Type Description
_app Protected Application    

Defined in

Last Updated: 03 June, 2019