We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a664a1 commit cf3bf65Copy full SHA for cf3bf65
1 file changed
src/sockets/sockets.gateway.ts
@@ -1,5 +1,7 @@
1
import {
2
ConnectedSocket,
3
+ OnGatewayConnection,
4
+ OnGatewayDisconnect,
5
SubscribeMessage,
6
WebSocketGateway,
7
} from "@nestjs/websockets";
@@ -10,7 +12,9 @@ import { SocketsService } from "./sockets.service";
10
12
@WebSocketGateway({
11
13
path: "/ws/web",
14
})
-export class SocketsGateway {
15
+export class SocketsGateway
16
+ implements OnGatewayConnection, OnGatewayDisconnect
17
+{
18
constructor(private readonly sockets: SocketsService) {}
19
20
@SubscribeMessage("ping")
0 commit comments