Type Alias ConnectionMessagePayload

ConnectionMessagePayload: { source: string; requestId: string } & (
    | {
        type: "newConnectionCreated";
        connection: Connection;
        error?: never;
        errorData?: never;
    }
    | {
        type: "newConnectionFailure";
        connection?: never;
        error: string;
        errorData?: ErrorData;
    }
)