LocChat/server/providers/gateways/ping.gateway.ts
2022-03-08 12:10:53 -07:00

12 lines
244 B
TypeScript

import { SubscribeMessage, WebSocketGateway } from '@nestjs/websockets';
@WebSocketGateway()
export class PingGateway {
constructor() {}
@SubscribeMessage('ping/:id')
public handlePing() {
return { message: 'recieved ping' };
}
}