You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@WebSocketServer decorator returns a Namespace (socket.io) instead of Server (socket.io) when @WebSocketGateway is called with namespace option set. Without the namespace option, it returns a Server, as expected.
@kamilmysliwiec
How to get the direct access to the native, platform-specific server instance, in such setup where namespace is being used inside the @WebSocketGateway() decorator?
Is there an existing issue for this?
Current behavior
@WebSocketServer
decorator returns a Namespace (socket.io) instead of Server (socket.io) when@WebSocketGateway
is called with namespace option set. Without the namespace option, it returns a Server, as expected.Minimum reproduction code
https://github.com/bryanrp/nestjs-issue-websocket
Steps to reproduce
npm install
npm run test:e2e
Expected behavior
All tests are expected to pass. The failed test shows that
@WebSocketServer
does not return a Server (socket.io) object.Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
^10.0.0
Packages versions
Node.js version
18.17.0
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: