Chat App With Nest.js + Socket.io in 15 Minutes

  Рет қаралды 70,765

Michael Guay

Michael Guay

3 жыл бұрын

Github Repo: github.com/mguay22/nestjs-soc...
Nest.js Docs: docs.nestjs.com/websockets/ga...
Socket.io Docs: socket.io/docs/v3/client-api/...
Get my highly-rated Udemy courses at a discount here: michaelguay.dev/udemy/

Пікірлер: 48
@mguay
@mguay 5 ай бұрын
Get my highly-rated Udemy courses at a discount here: michaelguay.dev/udemy/
@ayoubguismi4558
@ayoubguismi4558 2 жыл бұрын
Thank again michael guaw, as always very simple and well explained
@jpeiter
@jpeiter 2 жыл бұрын
very useful, straight to the point!
@OleksandrDanylchenko2k
@OleksandrDanylchenko2k 3 жыл бұрын
Solid basic example, thanks!
@abdurrehman661
@abdurrehman661 2 жыл бұрын
Postman can also be used to test web sockets if someone do not want to make client part for testing
@berkcansavur9035
@berkcansavur9035 Жыл бұрын
Great simple explaination and suggestive for improving the understand of concept.
@user-kb2nu8lh2t
@user-kb2nu8lh2t Жыл бұрын
Thank you for the video! I managed to get it up and running, though those following this guide nowadays may encounter a 400 response code with code 5: unsupported protocol version message. The solution is this: leave client-side code as it is, and decorate the ChatGateway class with the following options: @WebSocketGateway({ cors: { origin: '', methods: ['GET', 'POST'], transports: ['websocket', 'polling'], credentials: true, }, allowEIO3: true, }) export class ChatGateway {...}
@AngelHdzMultimedia
@AngelHdzMultimedia Жыл бұрын
Life saver! Thank you! I noticed I liked this video before that means I tried this solution before, but it didn't work this time! Gateway was receiving nothing, and frontend was throwing Cors error, even though I had the origin: ''. Added the other stuff and it worked right away! Thank you very much!!! Happy new year, wishing you health, joy and success.
@AngelHdzMultimedia
@AngelHdzMultimedia Жыл бұрын
Update: I deleted all the options except cors: { origin: 'localhost:9000', } And it's still working. I'm now confused because that's exactly what I had in the first place and didn't work...
@jagendrasrivastava2263
@jagendrasrivastava2263 4 ай бұрын
Thanks It works. !!!!!
@shehanrangana1844
@shehanrangana1844 Жыл бұрын
Solid simple example. Thanks
@tulionavarro6543
@tulionavarro6543 3 жыл бұрын
Beautiful way to explain, tks!!
@arashalfoneh2827
@arashalfoneh2827 Жыл бұрын
Thank you for recording this video
@watchyour20
@watchyour20 2 жыл бұрын
Awesome video! Thanks!
@panthpatel3066
@panthpatel3066 5 ай бұрын
Is it possible to create many different socket channels, e.g. for group chat, so only the relevant clients can see their group chats?
@dev.caixeiroviajante
@dev.caixeiroviajante Жыл бұрын
Thanks for the content !! Which theme are u using ?
@lilililliilil
@lilililliilil Жыл бұрын
Great video ty❤
@Kareszrk
@Kareszrk 2 жыл бұрын
Thank you so much
@safaltammewar4233
@safaltammewar4233 2 жыл бұрын
How to run WebSocket with HTTPS in nestjs
@irhasm.a.4932
@irhasm.a.4932 Жыл бұрын
please make more💙
@widya2550
@widya2550 7 ай бұрын
Superb
@MadanLal-ue1gr
@MadanLal-ue1gr 2 жыл бұрын
video anda sangat bagus dan mempunyai mesej yang luas terima kasih
@user-sc7by4nv1f
@user-sc7by4nv1f 2 жыл бұрын
Cool example, what about testing socket on nestjs?
@alexandervashchuk7795
@alexandervashchuk7795 4 ай бұрын
incompatible with the latest versions of nestjs cors issues are not fixable
@amitmondal7427
@amitmondal7427 3 жыл бұрын
Thank you ❤❤❤
@amitmondal7427
@amitmondal7427 3 жыл бұрын
@Maxim Lian I have no extra time to watch movies, thank.
@ekopurnomo9221
@ekopurnomo9221 Жыл бұрын
thankyouuu
@mohabedr5030
@mohabedr5030 3 жыл бұрын
but this is not socket io library this is websockets
@muzafferckay2609
@muzafferckay2609 3 жыл бұрын
Could you make a tutorial using socket in rest api? For example when when data posted send the same data to the client main Page.
@mguay
@mguay 3 жыл бұрын
You can inject the Socket Gateway into any other service. So after you do something with data, you can tell the Gateway to emit a message to all subscribers.
@muzafferckay2609
@muzafferckay2609 3 жыл бұрын
@@mguay My client is build in react. I could not figure out that.
@Voldeblort
@Voldeblort 3 жыл бұрын
​@@muzafferckay2609 Correct me if im wrong but imo, it has nothing to do with your client application and the technology you choosed. At least it shouldn't be.
@quikseva5766
@quikseva5766 2 жыл бұрын
you must increase front size
@xice111
@xice111 3 жыл бұрын
i have a CORS problem, any solution?
@midblep
@midblep 3 жыл бұрын
Make sure you have your nestjs server turned on, that was my problem!
@mguay
@mguay 3 жыл бұрын
Hi, what is the error you are recieving? Which browser are you using?
@PasNini7
@PasNini7 3 жыл бұрын
@@mguay I have the same issue my error is index.html:1 Access to XMLHttpRequest at 'localhost:3000/socket.io/?EIO=3&transport=polling&t=Ng2pvch' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource., and I use google chrome
@thevamsi
@thevamsi 3 жыл бұрын
@@mguay Hey Michael. I have the same issue running this on google chrome. And I did add the app.enableCors() in main.ts which helped me get to my REST calls. For some reason, Can't get the ws to work properly.
@ziggys.9768
@ziggys.9768 3 жыл бұрын
Me too, maybe is a version problem. I have installed @nestjs/platform-socket.io": "^8.0.6" Firefox is my browser (and my server is turned on)
@abdelazizelhayyany6087
@abdelazizelhayyany6087 Жыл бұрын
12:24 dd hh hahaha real tests
@adeelshekhani636
@adeelshekhani636 2 жыл бұрын
I event got it working within 5mins
@walkingtalkingstephenhawki8702
@walkingtalkingstephenhawki8702 10 ай бұрын
Gonna need to borrow that spelling, sorry.
@brightbong92
@brightbong92 Жыл бұрын
if you to occur cors error add @WebSocketGateway(port, {cors: '*'} )
@funnycatmeowmeow
@funnycatmeowmeow 11 ай бұрын
Thank you so much
Websockets in NestJs (Real-Time Chat App)
24:51
Computerix
Рет қаралды 3 М.
Easiest way to build real-time web apps? WEBSOCKETS with NestJS
38:24
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 17 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 110 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 86 МЛН
Nestjs - быстрый курс по лучшему  Node js фреймворку
52:33
PurpleSchool | Anton Larichev
Рет қаралды 56 М.
Build Nest.js Microservices With RabbitMQ, MongoDB & Docker | Tutorial
1:24:40
Want to make a chat app? Get Real-time With WebSockets & Socket.io!
1:31:40
Good Morning Developers
Рет қаралды 7 М.
Learn Socket.io In 30 Minutes
27:27
Web Dev Simplified
Рет қаралды 488 М.
Socket.io + ReactJS Tutorial | Learn Socket.io For Beginners
32:35
Don't Use Websockets (Until You Try This…)
6:46
Code With Ryan
Рет қаралды 293 М.
Real Time Chat Room Made Easy! | FastAPI Tutorial
11:32
Eric Roby
Рет қаралды 13 М.
NestJS + Prisma Deep Dive
51:42
Michael Guay
Рет қаралды 20 М.
Best way to learn Socket IO | complex chat app
19:52
Hitesh Choudhary
Рет қаралды 90 М.
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 8 МЛН
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 4,1 МЛН
8 Товаров с Алиэкспресс, о которых ты мог и не знать!
49:47
РасПаковка ДваПаковка
Рет қаралды 171 М.
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН