Socket.io Chat App Using Websockets

preview_player
Показать описание

UPDATED VIDEO WITH MONGODB:

RELATED COURSES
Рекомендации по теме
Комментарии
Автор

dont apologize for having an extended in-depth tutorial as a new JavaScript dev this has been really helpful :) thanks

solmatrix
Автор

This tutorial is phenomenal. I was dead scared of using sockets but this seems so straightforward

plouf
Автор

I don't get why people find this so good, it's half explained. You're literally just telling us what you're typing, would love an explanation. I know how to type.

LAKD
Автор

Thanks a million! I'm a total beginner at this and I was able to follow. It would be really useful to provide a screen shot of all the code at the end so that when I make an error I could just go to that and see what the mistake is. Or it would be even more useful if the code was available somewhere. But that's not a complaint!!

clairebear
Автор

This is one of the most practical tutorials ever!! Without any annoying bgm... ;p
I was able to make my first chat app watching this... Thanks a gazillion!! <3

boredbuddy
Автор

Brad this is by far the best tutorial i have done. I keep messing up my code though. Is there any way to download the code. and do you have other tutorials?

mrMathTeacher
Автор

In case if you don't know, try Emmet. It will reduce the amount of keystrokes you need to press to write your html and css code.
for e.g: div.container>div.row (tab) will result to a container div with a div containing row. You may need to install plugin in sublime for emmet to work properly.

awaisraad
Автор

So I didn't really see who made this video and start watching in full screen. One minute in I'm like, this voice is familiar. Of course it is you! I have been watching so many videos of yours in the past weeks! Awesome content and great educational value. Thank you so much!

ashalya
Автор

I have been watching for awhile and appreciate the time and care put into each tutorial. This was great and has inspired me to get back into coding for NodeJS and playing with all the great tools. Thanks again.

deetwoyou
Автор

Great example and tutorial. I'd love to see another one on this stuff. It's got so much potential.

drewpeer
Автор

On Windows 10 add io.set('transports', ['websocket']); after your variable to the server side and add var socket = io({transports: ['websocket']}); on your client side this will prevent it from saying it connected a thousand times and apparently can increase performance.

JacobWard
Автор

Thank you so much for this tutorial. I know nothing on sockets for now, but i believe this is a great start for me. Thank you very much

onyebuchukwuphilip
Автор

Only half way through, but i had to stop and say thanks. It's good you don't have the source code just to copy and paste; it makes this a whole learning experience. Heck, I even downloaded Sublime.

KarelSeeuwen
Автор

Thanks for tutorial, Brad, it is amazing! what about socket.username in 'disconnect' event (socket.username is undefind )? how can we forward 'socket.username' into 'disconnect' event?

andrewmedvedev
Автор

Awesome content here. My suggestion for you is to prepare some code dumps upfront, so you wouldn't spend so much time coding while recording. The tutorials would be shorter and more concise. But all in all, this is a great tut. It helped me get started on sockets. Thanks a million!

Slavisa

Автор

Nice tutorial! I would like to make a correction. At line 15 in app.js instead of io.sockets.on('connection', function(socket){..} .... try using "once" like this : "io.sockets.once('connection', function(socket){...}". I had issues each time I make new connection, the number of connected sockets has been going duplicated....so this little change worked for me. Hope that it will be useful for you :).

ХристоСтанков-ок
Автор

Hi Brad, i really like your content so far. Quick question (couldn't find the answer on google), can you use socket io client to communicate with any server, i want to make my tcp server using c#/java? Thanks

LazarRedDevil
Автор

Hi, you did a great job. One question. how can I differentiate message for each user? For example, there are so many users connected but I want to send a message to the single user. like, group chat.

BharatPatel-tkdg
Автор

Your tutorials are awesome. Do you have any tutorial that teach about websockets in detail?

TechNovaAquariums
Автор

Traversy, 15:35 thank you for this... I was wondering since 9:40 why you push and then splice. Thanks for the great video, man.

AN-eijf