import { OnGatewayConnection , OnGatewayDisconnect , WebSocketGateway , } from '@nestjs/websockets' ; import { WebSocketClient } from '@dark-rush-photography/shared/types' ; import { WebSocketMessageProvider } from '@dark-rush-photography/api/data' ; @ WebSocketGateway ( ) export class WebSocketMessagesGateway implements OnGatewayConnection , OnGatewayDisconnect { constructor ( private readonly webSocketMessageProvider ) { } handleConnection ( webSocketClient ) { this . webSocketMessageProvider . handleConnection ( webSocketClient ) ; } handleDisconnect ( webSocketClient ) { this . webSocketMessageProvider . handleDisconnect ( webSocketClient ) ; } }