smartsocket/dist/smartsocket.classes.socketfunction.d.ts
2016-08-08 18:20:00 +02:00

20 lines
531 B
TypeScript

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