import { IExternalClientArray } from "./IExternalClientArray"; import { ExternalSystem } from "../ExternalSystem"; /** * An interface for an {@link ExternalSystemArray} accepts {@link ExternalSystem external clients} as a * {@link IServer server} and connects to {@link IExternalServer} as **client**, at the same time. * * The easiest way to defining an {@link IExternalServerClientArray} who opens server, accepts * {@link ExternalSystem external clients} and connects to {@link IExternalServer external servers} is to extending * one of below, who are derived from this interface {@link IExternalServerClientArray}. However, if you can't * specify an {@link ExternalSystemArray} to be whether server or client or even can both them, then make a class * (let's name it as **BaseSystemArray**) extending {@link ExternalSystemArray} and make a new class (now, I name * it **BaseServerClientArray**) extending **BaseSystemArray** and implementing this interface * {@link IExternalServerClientArray}. Define the **BaseServerClientArray** following those codes on below: * * * * @handbook [Templates - External System](https://github.com/samchon/framework/wiki/TypeScript-Templates-External_System) * @author Jeongho Nam */ export interface IExternalServerClientArray extends IExternalClientArray { /** * Connect to {@link IExternalServer external servers}. * * This method calls children elements' method {@link IExternalServer.connect} gradually. */ connect(): void; }