Тёмный

Websockets in NestJs (Real-Time Chat App) 

Computerix
Подписаться 4,2 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@Naya-ss7vs
@Naya-ss7vs 5 месяцев назад
We missed seeing content from you! So helpful and informative as usual. Keep up the good work 🤝🏻
@Computerix
@Computerix 5 месяцев назад
Thank you !! :)
@mingazhutdinakhmedkhanov8599
@mingazhutdinakhmedkhanov8599 Месяц назад
Thank you for these helpful information
@Computerix
@Computerix Месяц назад
You are welcome!
@HuyTran.DevBackEnd
@HuyTran.DevBackEnd 18 дней назад
Tks pro ❤❤
@abdulrahmanarmashi6954
@abdulrahmanarmashi6954 5 месяцев назад
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 5 месяцев назад
Thanks for the feedback! I'm planning on making a part 2, with authentication, rooms, and a database!
@abdulrahmanarmashi6954
@abdulrahmanarmashi6954 5 месяцев назад
@Computerix That is very good, so i am waiting for part 2 🤩
@dreamsachiever212
@dreamsachiever212 3 месяца назад
@@Computerix waiting for part 2. subscribed. thanks for your content. your teaching style is great.
@codexamofficial
@codexamofficial 5 месяцев назад
Thanks bro! Well Explained ✅ Subscribed and looking forward to more of your videos. 💌
@Computerix
@Computerix 5 месяцев назад
I'm glad if was helpful 🤝🏻 More coming soon !
@piyumalchandrarathna5169
@piyumalchandrarathna5169 3 месяца назад
Thank you bro. subscribed
@joeatallah338
@joeatallah338 5 месяцев назад
Super informative 💯
@Computerix
@Computerix 5 месяцев назад
I'm glad!
@mjavadhasanzade3478
@mjavadhasanzade3478 2 месяца назад
awesome and helpfull thank you, if you could add more features like, sign in and authorize and usernames would be great.
@Computerix
@Computerix 2 месяца назад
Planning on doing so in a future video!
@smileVideos-mb1yy
@smileVideos-mb1yy 5 месяцев назад
very nice thank
@Naya-ss7vs
@Naya-ss7vs 5 месяцев назад
Can you please tell us how we can use it practically? What are situations we might need this in?
@Computerix
@Computerix 5 месяцев назад
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
@quang.luu.179
@quang.luu.179 5 месяцев назад
Top!!!
@Computerix
@Computerix 5 месяцев назад
Thank you for your continuous support! 😁
@Naya-ss7vs
@Naya-ss7vs 5 месяцев назад
*grabs my notebook*
@Computerix
@Computerix 5 месяцев назад
😂💪
@AHMED-nd7zt
@AHMED-nd7zt 4 месяца назад
so what if i want it happend in privet chat between just to user
@Computerix
@Computerix 4 месяца назад
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 4 месяца назад
@@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 4 месяца назад
@@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!
Далее
НОВАЯ "БУХАНКА" 2024. ФИНАЛ
1:39:04
Просмотров 432 тыс.
#kikakim
00:10
Просмотров 14 млн
NestJs Microservices with RabbitMQ
23:21
Просмотров 13 тыс.
NestJs caching with Redis
18:17
Просмотров 7 тыс.
Real Time Chat Room Made Easy! | FastAPI Tutorial
11:32
The Most Important Design Pattern in React
35:04
Просмотров 61 тыс.
НОВАЯ "БУХАНКА" 2024. ФИНАЛ
1:39:04
Просмотров 432 тыс.