NestJS-Websockets



以我的Ideas App为例,如何将网络套接字连接添加到NestJS。

链接:
我的代码-https://github.com/kelvin-mai/nest-ideas-api
NestJS文件-https://docs.nestjs.com/websockets/gateways
Socket.io-https://socket.io/。

15 comments
  1. Valuable content. But keyboard is too loud. The mic you use and/or where you place the mic makes the key strokes unbearable.

  2. Hello Mai, thanks for this amazing, I followed your tutorials and everything is working well so far, but now I wanted to protect my WebSocket gateway, so i have created an auth guard but nothing is happening , but in handleConnection callback i have successfully retrieved the token from , but when i throw error inside this function(in case there is no token or token is invalid) my nodejs server crash immediately

  3. Hello thanks for such kind of video… I see that you are providing the WSS configuration under a nested module, and it's good for some purposes or a majority of them, but what if I would like to provide it on root to allow all nested modules use this WS Server? I tried and it duplicated the logs and I bet it is duplicating the jobs, how do I fix it?

  4. You saved my code! Thank you! ..
    Is there a way to join/leave rooms, send message to specific user too? i`m coding a chat app

Comments are closed.