Fake Mirrors
    Preparing search index...

    Class CompleteService

    Represents the complete service.

    • Creates a new dummy message (only counters updated, not real message saved).

      Parameters

      • data: {
            campaignId: string;
            messageId: string;
            proxyId: string;
            sessionId: string;
            targetId: string;
        }

      Returns Promise<void>

    • Creates a new message.

      Parameters

      • data: {
            analyze: string;
            campaignId: string;
            connection: HttpConnection;
            errors: HttpError[];
            finishTime: number;
            messageId: string;
            method: "HEAD" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS";
            payload: HttpPayload;
            proxyId: string;
            requestBody: HttpBody;
            requestHeaders: HttpHeaders;
            responseBody: HttpBody;
            responseHeaders: HttpHeaders;
            sessionId: string;
            startTime: number;
            status: number;
            targetId: string;
            type:
                | "websocket"
                | "normal-simple"
                | "normal-stream-request"
                | "normal-stream-response";
            url: string;
        }

      Returns Promise<void>

    • Registers the service as a singleton in the DI container.

      Parameters

      • container: DIContainer

        The DI container to register in.

      Returns void