SocketHandlerMetadata
@tsed/socketio
Usage
typescript
import { SocketHandlerMetadata } from "@tsed/socketio";
See /packages/third-parties/socketio/src/types/interfaces/SocketHandlerMetadata.ts.
Overview
ts
interface SocketHandlerMetadata {
eventName?: string;
methodClassName: string;
useBefore?: any[];
useAfter?: any[];
parameters?: {
[key: number]: SocketParamMetadata;
};
returns?: {
type: SocketReturnsTypes;
eventName: string;
};
}
eventName
ts
eventName?: string;
methodClassName
ts
methodClassName: string;
useBefore
ts
useBefore?: any[];
useAfter
ts
useAfter?: any[];
parameters
ts
parameters?: {
[key: number]: SocketParamMetadata;
};
returns
ts
returns?: {
type: SocketReturnsTypes;
eventName: string;
};