brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
nestjs-real-timeImplement 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.
Independent GitHub snapshot · Automated classification · Original documentation governs
@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.@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.