12 lines
244 B
TypeScript
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' };
|
|
}
|
|
}
|