@cldn/web-ts - v0.4.0
    Preparing search index...

    Interface Events

    Server events map

    interface Events {
        closed: [void];
        closing: [void];
        error: [Error];
        listening: [port: number, host?: string];
    }
    Index

    Properties

    closed: [void]

    All connections have ended and the server has closed.

    closing: [void]

    The server is closing and not accepting new connections.

    error: [Error]

    An uncaught error occurred. Client has been sent ServerErrorRegistry.ErrorCodes.INTERNAL error. If no listener is registered when the server begins listening for the first time, a default listener will be added to direct errors to stderr.

    listening: [port: number, host?: string]

    Server is listening and ready to accept connections.