You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
314 B

export interface IWebSocketRequest {
type: "request",
requestId: number,
method: string,
payload: any
}
export interface IWebSocketResponse {
type : "response",
requestId: number,
payload : any
}
export interface IPendingRequest {
resolve(payload?: any): void,
reject(error: Error|string): void
}