Websockets in NestJs (Real-Time Chat App)

  Рет қаралды 10,767

Computerix

Computerix

Күн бұрын

Пікірлер: 38
@smohammadhn
@smohammadhn 23 күн бұрын
That was actually a great start for a beginner like me
@Computerix
@Computerix 22 күн бұрын
I'm glad!
@enjoywithcoinee1966
@enjoywithcoinee1966 Ай бұрын
your way is so great to approach and follow. many thanks
@enjoywithcoinee1966
@enjoywithcoinee1966 Ай бұрын
it could be better with sending messages to specific roomId/topicId
@tonyeneh8194
@tonyeneh8194 2 ай бұрын
thank you very much. This is gold!
@od1ez
@od1ez Ай бұрын
Thanks a lot man, your content is amazing!
@Computerix
@Computerix Ай бұрын
@@od1ez Appreciate it :)
@Naya-ss7vs
@Naya-ss7vs 8 ай бұрын
We missed seeing content from you! So helpful and informative as usual. Keep up the good work 🤝🏻
@Computerix
@Computerix 8 ай бұрын
Thank you !! :)
@mingazhutdinakhmedkhanov8599
@mingazhutdinakhmedkhanov8599 4 ай бұрын
Thank you for these helpful information
@Computerix
@Computerix 4 ай бұрын
You are welcome!
@abdulrahmanarmashi6954
@abdulrahmanarmashi6954 8 ай бұрын
Very awesome and easy to understand, i hope you implement more features like creating a group, adding people to the group, and storing in database and more .... Thank you
@Computerix
@Computerix 8 ай бұрын
Thanks for the feedback! I'm planning on making a part 2, with authentication, rooms, and a database!
@abdulrahmanarmashi6954
@abdulrahmanarmashi6954 8 ай бұрын
@Computerix That is very good, so i am waiting for part 2 🤩
@dreamsachiever212
@dreamsachiever212 6 ай бұрын
@@Computerix waiting for part 2. subscribed. thanks for your content. your teaching style is great.
@ZeinShaban-l3p
@ZeinShaban-l3p Ай бұрын
you are the best bro
@joeatallah338
@joeatallah338 8 ай бұрын
Super informative 💯
@Computerix
@Computerix 8 ай бұрын
I'm glad!
@codexamofficial
@codexamofficial 8 ай бұрын
Thanks bro! Well Explained ✅ Subscribed and looking forward to more of your videos. 💌
@Computerix
@Computerix 8 ай бұрын
I'm glad if was helpful 🤝🏻 More coming soon !
@piyumalchandrarathna5169
@piyumalchandrarathna5169 6 ай бұрын
Thank you bro. subscribed
@mjavadhasanzade3478
@mjavadhasanzade3478 5 ай бұрын
awesome and helpfull thank you, if you could add more features like, sign in and authorize and usernames would be great.
@Computerix
@Computerix 5 ай бұрын
Planning on doing so in a future video!
@Naya-ss7vs
@Naya-ss7vs 8 ай бұрын
Can you please tell us how we can use it practically? What are situations we might need this in?
@Computerix
@Computerix 8 ай бұрын
Websockets are mostly used for chatting apps / Live feeds - dashboards/ Multiplayer games / Real time editing tools that allow multiple users to edit at the same time (like figma).. You can basically use websockets for anything that requires real-time communication
@HuyTran.DevBackEnd
@HuyTran.DevBackEnd 3 ай бұрын
Tks pro ❤❤
@AHMED-nd7zt
@AHMED-nd7zt 7 ай бұрын
so what if i want it happend in privet chat between just to user
@Computerix
@Computerix 7 ай бұрын
You can send a message directly to one user by sending it to their socket Id, as such : socket.to(otherSocket.id).emit('event name', 'message')
@AHMED-nd7zt
@AHMED-nd7zt 7 ай бұрын
@@Computerix so if i have user in my data base with id of 1 how can i know which socket.id is related to him
@Computerix
@Computerix 7 ай бұрын
@@AHMED-nd7zt Typically, you'd be logged in as a user and will possess a JWT token that you will send in the headers when connecting to the websockets server from your client. The backend will validate that JWT token from "socket.handshake.headers.authorization" (for example), and the token will include the userId when decoded.. You can then attach that userId on that specific socket using socket.data.userId = userId You can also store the socketId in your database if needed for the duration of that session. I am gonna make a video soon that will include users and authentication and rooms, etc.. So if you have any more confusions, they should be sorted in the video!
@smileVideos-mb1yy
@smileVideos-mb1yy 8 ай бұрын
very nice thank
@ChungLeeVN
@ChungLeeVN 2 ай бұрын
Rất hay
@Naya-ss7vs
@Naya-ss7vs 8 ай бұрын
*grabs my notebook*
@Computerix
@Computerix 8 ай бұрын
😂💪
@quang.luu.179
@quang.luu.179 8 ай бұрын
Top!!!
@Computerix
@Computerix 8 ай бұрын
Thank you for your continuous support! 😁
NestJS Websockets Tutorial #1 - Creating a Websocket Gateway Server
20:37
Anson the Developer
Рет қаралды 62 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Build Real-Time Chat App in NEXT JS 15 using Socket.io for Dev and Prod Environments
1:05:08
NestJs - Best Practices + Implementations
22:26
Computerix
Рет қаралды 10 М.
Want to make a chat app? Get Real-time With WebSockets & Socket.io!
1:31:40
Good Morning Developers
Рет қаралды 21 М.
ChatGPT can now create apps?
18:21
Vlad Holtz
Рет қаралды 121 М.
Best way to learn Socket IO | complex chat app
19:52
Hitesh Choudhary
Рет қаралды 126 М.
NestJs caching with Redis
18:17
Computerix
Рет қаралды 9 М.
WebSocket - The Easiest and Detailed Explanation
9:35
Coding with Yalco
Рет қаралды 7 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН