UNPKG

socketio-class-controllers

Version:

Use class-based controllers to handle websocket events

23 lines (22 loc) 491 B
import { ActionType } from "../types/ActionTypes"; /** * Action metadata used to storage information about registered action. */ export interface ActionMetadataArgs { /** * Message's name to listen to. */ name?: string; /** * Class on which's method this action is attached. */ target: Function; /** * Object's method that will be executed on this action. */ method: string; /** * Action type. */ type: ActionType; }