DEV Community

[Comment from a deleted post]
Collapse
 
drewmor30185867 profile image
Drew Morris

Thanks. Could you link a tutorial like for like this kind of chat (support chat)?

Collapse
 
brandinchiu profile image
Brandin Chiu

I don't have a tutorial handy, but if you at the video at 4:45, where he's setting up the initial socketio connection, this is what you would be updating.

Each io object represents an open socket connection with a server.

You would need to create one of these for each unique user who connects to your service. You would then connect independently to each socket server you set up, which would only have up to one other person in it.

 
drewmor30185867 profile image
Drew Morris

Thanks a ton but a tutorial for a chat like this where everyone can message me and I can message everyone, however, they cannot message each other or read each others message would be very helpful. Could you please find such a tutorial? I googled but could not find any myself