React Chat App Using Socket.IO | Socket IO Tutorial

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

📞 If you would like to schedule a mock interview with me, you can email me at

AFFILIATE / REFERAL LINKS
--TP-Link AC1900 Smart Wireless Router - Beamforming Dual Band Gigabit WiFi Internet Routers for Home, High Speed, Long Range, Ideal for Gaming (Archer C9)

--Blue Yeti USB Mic for Recording & Streaming on PC and Mac, 3 Condenser Capsules, 4 Pickup Patterns, Headphone Output and Volume Control, Mic Gain Control, Adjustable Stand, Plug & Play - Midnight Blue

--Acer R240HY bidx 23.8-Inch IPS HDMI DVI VGA (1920 x 1080) Widescreen Monitor,Black

--USB C Hub HDMI Adapter for MacBook Pro, Multi-Ports Mac Dongle with 4K USB C to HDMI, 7 in 1 USB C Hub, USB C to HDMI SD TF Card Reader 3 USB 3.0 and USB C Power Pass-Through Port Adapters.

--Turtle Beach Recon 70 Gaming Headset for Xbox One, PlayStation 4 Pro, PlayStation 4, Nintendo Switch, PC, and Mobile - Xbox One

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

The first thing I did was checking the video play speed and after I realized that is your normal talking speed :), great video thanks.

suleyman.gunduz
Автор

Thanks for the amazing tutorial!!
I built the chat app and it is working fabulously but the only thing is that the message gets sent and received twice after hitting the send button only once

VedantBorkar-wf
Автор

Thank you very much! I was struggling with updating the messages on all instances for days.

rob
Автор

Thank you very much. Very contentfull video with crystal clear explanation.

manoj-k
Автор

Hey Chaim! This was a great video on Socket.io, as expected. One quick question about the key being assigned index values when you mapped the messages around the 18 minutes mark. It is my understanding the using an index value is essentially equivalent to just not assigning a key at all. The reason being that React will default to assigning index positions of the array being mapped should the key be left out. So when a user deletes a message in our app it would trigger React's reconciliation algorithm to re-render much more than needed.

So question one, is my understanding correct here?

Question two, if I do understand this correctly, what is a good general solution to assigning unique keys here? I've heard of something called UUID before, maybe that would work well for messages here?

alexskinner
Автор

Can you also add private chat to it ? Like when a user search for another user if they're online, should be able to talk to them (1-1).

carefree_ladka
Автор

in the useEffect, your id is returning undefined from the server. Even though connection is good, its not getting what the server is sending on connect. do you know why this might be ?

buraktorman
Автор

dudeee, thank you so muchh. I learned alot!

kierrboy
Автор

Im not able to get this to work at all... i keep getting polling errors from both the client and server side. both the socket.io version 3 and socketio-client are bugged according to the docs, and the docs for both sucks...

MarsTheProgrammer
Автор

where can i get the styles of this project?

ishaqorakzai
Автор

can you integrate this chat application with all types of files i.e. images, videos, pdfs etc with socket.io

dhairyawadhwani
Автор

Hello bro, again I need your help... I am using this chat app with nodejs react app and I am finding a lot of problems settings the socket id the same as user id, any help ?

ahmadhaidar
Автор

That's a great tutorial!!.Can u please help me out ?? While I am running the localhost I got UI, but when I hit send no message is displayed

kusumapakalapati
Автор

why u did not show terminal part in react webrtc videos. plz guide me about that

yashgoyal
Автор

all youtuber share the same code. one component in the client side + without rooms in the server side.
write some advanced code bro !!

SilentDrifts
Автор

very nice video, but for some reason, all messages are displayed as sent messages. meaning even incoming messages are display on the right side with pick background....

hidehirookayama
Автор

Can you do a tutorial for a Private message and a Room? Instead of a Global chat.

symbianizemember
Автор

yo dude nice video, however, i wish you were using a bigger font size for the video, also speaking SLOWER lol.

thegeeksides
Автор

Bruh, you need to talk at a slightly slow pace, english is not my first language :) Otherwise very good tutorials!

adityamysore
Автор

Nice video~ thanks for the tutorial~
but man... Try not to listen to Eminem that much...

shinji
visit shbcf.ru