Skip to content

SocketErr

@tsed/socketio

Usage

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

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

Overview

ts
function SocketErr(target: any, 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.