Theia API Documentation v1.65.0
    Preparing search index...

    Contribution for hooking into the backend lifecycle:

    • initialize()
    • configure(expressApp)
    • onStart(httpServer)
    • onStop()

    Implements

    Index

    Constructors

    Properties

    checkAliveTimeout: number = 30000
    maxHttpBufferSize: number = 1e8
    messagingListener: MessagingListener
    wsHandlers: ConnectionHandlers<
        Socket<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>,
    > = ...
    wsRequestValidator: WsRequestValidator

    Methods

    • Called right after the server for the Express app is started. Use this to additionally configure the server or as ready-signal for your service.

      The implementation may be async, however it will still block the startup step until it's resolved.

      Parameters

      • server:
            | Server<typeof IncomingMessage, typeof ServerResponse>
            | Server<typeof IncomingMessage, typeof ServerResponse>

        the backend server running the express app.

      Returns void

      either undefined or a Promise resolving to undefined.