socket.io-ts-controllers
Version:
Use class-based controllers to handle websocket events
14 lines (13 loc) • 360 B
TypeScript
/**
* Controller metadata used to storage information about registered controller.
*/
export interface SocketControllerMetadataArgs {
/**
* Indicates object which is used by this controller.
*/
target: Function;
/**
* Extra namespace in which this controller's events will be registered.
*/
namespace?: string | RegExp;
}