Member Junction
    Preparing search index...

    Interface ServerExtensionInitContext

    Context passed to BaseServerExtension.Initialize() and OnAllExtensionsMounted().

    interface ServerExtensionInitContext {
        app: Application;
        config: ServerExtensionConfig;
        httpServer?: Server;
        phase: ServerExtensionPhase;
        publicUrl?: string;
        services: ServerExtensionServiceRegistry;
    }
    Index

    Properties

    app: Application

    Express application instance to mount routes on.

    Extension configuration from mj.config.cjs or Open App metadata.

    httpServer?: Server

    Node HTTP/HTTPS server instance, if available (e.g. for WebSocket attachment).

    Current lifecycle phase being mounted ('pre-auth' | 'post-auth').

    publicUrl?: string

    Canonical public base URL of the MJ server (e.g. 'https://api.example.com').

    Shared service registry for cross-extension service lookup and registration.