Skip to content

SocketErr

@tsed/socketio

Usage ​

typescript
import { SocketErr } from "@tsed/socketio";

See /packages/third-parties/socketio/src/decorators/socketErr.ts.

Overview ​

ts
function SocketErr(target: Object, propertyKey: string, index: number): any;

Description ​

Inject the error in the parameters

Example ​

typescript
@SocketMiddlewareError()
export class MyMiddleware {

  myMethod(@SocketErr err: any, @Args() arguments: any[]) {

  }
}

Released under the MIT License.