LocChat/server/providers/gateways/ping.gateway.ts

12 lines
244 B
TypeScript
Raw Normal View History

2022-03-08 14:10:53 -05:00
import { SubscribeMessage, WebSocketGateway } from '@nestjs/websockets';
@WebSocketGateway()
export class PingGateway {
constructor() {}
@SubscribeMessage('ping/:id')
public handlePing() {
return { message: 'recieved ping' };
}
}