smartsocket/dist/smartsocket.classes.socketfunction.d.ts

20 lines
531 B
TypeScript
Raw Normal View History

2016-08-07 16:59:39 +00:00
import { SocketRole } from "./smartsocket.classes.socketrole";
2016-08-08 16:20:00 +00:00
export interface ISocketFunctionData {
functionName: string;
functionData: any;
responseTimeout?: number;
}
2016-08-07 16:59:39 +00:00
export interface SocketFunctionOptions {
name: string;
func: any;
roles: SocketRole[];
}
export declare class SocketFunction {
name: string;
func: any;
roles: SocketRole[];
constructor(optionsArg: SocketFunctionOptions);
2016-08-08 16:20:00 +00:00
private _notifyRole(socketRoleArg);
functionRequest(dataArg: ISocketFunctionData): void;
2016-08-07 16:59:39 +00:00
}