tgrid
Version:
Grid Computing Framework for TypeScript
22 lines (21 loc) • 429 B
TypeScript
/**
* Common interface for server.
*
* @template State Type of state
* @author Jeongho Nam - https://github.com/samchon
*/
export interface IServer<State extends IServer.State> {
/**
* Current state of the server.
*/
readonly state: State;
}
export declare namespace IServer {
const enum State {
NONE = -1,
OPENING = 0,
OPEN = 1,
CLOSING = 2,
CLOSED = 3
}
}