NestJS ले real-time, bidirectional communication को समर्थन गर्छ WebSocket gateways मार्फत — @WebSocketGateway() decorator को साथ decorated classes जो WebSocket connections र messages (सामान्यतः Socket.IO मा) को संचालना गर्छन्। तिनीहरूले chat, live notifications, र live dashboards जस्ता features सक्षम गर्छन्, एक समान NestJS structure (DI, decorators) को प्रयोग गरेर।
Gateway परिभाषित गर्दै
{ , , , } ;
{ } ;
({ : })
{
()
: ;
()
() {
..(, data);
}
}
