1 20
import {EXCEPTIONS} from "../constants/exceptions.constant";
2

3 20
import {SocketError} from "../exceptions/socket.exception";
4

5

6
export function BreakMiddleware();
7
export function BreakMiddleware(reason:any);
8 20
export function BreakMiddleware(reason?:any){
9 20
    throw new SocketError(EXCEPTIONS.BREAK_MIDDLEWARE.message,EXCEPTIONS.BREAK_MIDDLEWARE.code,reason,false);
10
}

Read our documentation on viewing source code .

Loading