In this part, we are going to add the functions such that the other users in the same room can receive
the message.
But first, something missing in the socket on joyed, which is to step aside.
So in the service store, their we have to apply that SOCAP join the room, Idi Amin, back to the car
inside.
Inside the chapel.
Yes.
We are going to create a message.
The message is so constant message and that message is equal to the USA and we set the initial stage
should be an empty array and we want to use her to send a message around because whenever another user
send a message and we back to the Internet, you image and you weren't core message.
So we have to listen to this message event.
So we're back to the Chatterji as and again, we used to use Ebad.
So under the first use, if we type use DEFAT and then we depends on the message.
So you will not change the state when the message already said to the correct value.
And what we do inside here is to listen to the message you earn.
And every time the new message, we are going to attend to the message.
So we have to use that message.
And that message, message.
Now, under here, we are going to use case on screen to find.
And by the way, if we want to dissipate, Jason, more pitiful, we should type the trees on the street
if I like this, so we call is and patient it in our project.
Now, if we go to the website and strong on the left hand side, and this is Tom on the right hand side
and both go to the woman and every type right now, you can see both of them despite the message here.
And at the same time, if Tom type.
Hi, I am Tom.
Now, you can also see both of them can despite the Tom message.
So this is how to receive the message from other clients in the same room.