import { ExecutionContext , Injectable } from '@nestjs/common' ; import { AbstractInterceptorService } from './abstract-interceptor.service' ; @ Injectable ( ) export abstract class WebsocketInterceptorService extends AbstractInterceptorService { getCallPoint ( context ) { return this . reflector . get < string > ( 'message' , context . getHandler ( ) ) ; } param context returns getClient ( context ) { return context . switchToWs ( ) . getClient ( ) ; } }