smartsocket/dist/smartsocket.classes.socketrequest.d.ts

19 lines
786 B
TypeScript
Raw Normal View History

2016-08-09 09:42:21 +00:00
import { ISocketFunctionResponseObject } from "./smartsocket.classes.socketfunction";
import { Objectmap } from "lik";
export declare type TSocketRequestStatus = "new" | "pending" | "finished";
export declare type TSocketRequestSide = "requesting" | "responding";
export interface SocketRequestConstructorOptions {
side: TSocketRequestSide;
shortid: string;
}
export declare let allRequestingSocketRequests: Objectmap<SocketRequest>;
export declare let allRespondingSocketRequests: Objectmap<SocketRequest>;
export declare class SocketRequest {
status: TSocketRequestStatus;
side: TSocketRequestSide;
shortid: string;
constructor(optionsArg: SocketRequestConstructorOptions);
respond(dataArg: ISocketFunctionResponseObject): void;
private _dispatch();
}