skills/nestjs/nestjs-real-time/SKILL.md
Implement WebSocket gateways with Socket.io and Server-Sent Events endpoints in NestJS. Use when building chat features, live feeds, or choosing between WebSocket and SSE for real-time communication.
npx skillsauth add hoangnguyen0403/agent-skills-standard nestjs-real-timeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
@WebSocketGateway() or @Sse() controller.handleConnection() for WebSocket; use standard guards for SSE.@socket.io/redis-adapter for multi-pod WebSocket; use HTTP/2 for SSE.See implementation examples
See implementation examples
@Sse('route') returning Observable<MessageEvent>.ws adapter if performance critical (e.g., high-frequency trading updates) and you don't need "Rooms" logic.@socket.io/redis-adapter). Every pod publishes to Redis; Redis distributes to all other pods.handleConnection() lifecycle method. Disconnect immediately if invalid.WebSocketGateway should only handle client comms (Join Room, Ack message).AsyncApi or SocketApi decorators (from community packages) to document WS events similarly to OpenAPI.handleConnection(); HTTP guards don't trigger on WS.@socket.io/redis-adapter, cross-pod events lost.development
Summarizes GitHub PR, GitLab MR, or Azure DevOps PR metadata, review threads, changed files, and template completeness. Use during review-ticket or code-review workflows when PR/MR context exists.
tools
Development tools, linting, and build config for TypeScript. Use when configuring ESLint, Prettier, Jest, Vitest, tsconfig, or any TS build tooling.
development
Validate input, secure auth tokens, and prevent injection attacks in TypeScript. Use when validating input, handling auth tokens, sanitizing data, or managing secrets and sensitive configuration.
development
Apply modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings.