1
00:00:00,150 --> 00:00:06,360
In this part, we are going to add the functions such that the other users in the same room can receive

2
00:00:06,360 --> 00:00:06,990
the message.

3
00:00:07,140 --> 00:00:12,870
But first, something missing in the socket on joyed, which is to step aside.

4
00:00:13,020 --> 00:00:23,580
So in the service store, their we have to apply that SOCAP join the room, Idi Amin, back to the car

5
00:00:23,620 --> 00:00:24,240
inside.

6
00:00:24,420 --> 00:00:25,410
Inside the chapel.

7
00:00:25,590 --> 00:00:26,000
Yes.

8
00:00:26,940 --> 00:00:29,170
We are going to create a message.

9
00:00:29,430 --> 00:00:39,220
The message is so constant message and that message is equal to the USA and we set the initial stage

10
00:00:39,220 --> 00:00:48,930
should be an empty array and we want to use her to send a message around because whenever another user

11
00:00:48,930 --> 00:00:55,410
send a message and we back to the Internet, you image and you weren't core message.

12
00:00:55,470 --> 00:00:59,090
So we have to listen to this message event.

13
00:00:59,580 --> 00:01:05,010
So we're back to the Chatterji as and again, we used to use Ebad.

14
00:01:05,010 --> 00:01:13,110
So under the first use, if we type use DEFAT and then we depends on the message.

15
00:01:13,680 --> 00:01:18,240
So you will not change the state when the message already said to the correct value.

16
00:01:19,020 --> 00:01:24,930
And what we do inside here is to listen to the message you earn.

17
00:01:26,190 --> 00:01:30,000
And every time the new message, we are going to attend to the message.

18
00:01:30,930 --> 00:01:33,030
So we have to use that message.

19
00:01:34,450 --> 00:01:36,550
And that message, message.

20
00:01:37,690 --> 00:01:43,420
Now, under here, we are going to use case on screen to find.

21
00:01:46,090 --> 00:01:53,510
And by the way, if we want to dissipate, Jason, more pitiful, we should type the trees on the street

22
00:01:53,530 --> 00:01:58,210
if I like this, so we call is and patient it in our project.

23
00:02:03,870 --> 00:02:11,100
Now, if we go to the website and strong on the left hand side, and this is Tom on the right hand side

24
00:02:11,100 --> 00:02:19,580
and both go to the woman and every type right now, you can see both of them despite the message here.

25
00:02:20,070 --> 00:02:23,710
And at the same time, if Tom type.

26
00:02:23,710 --> 00:02:24,810
Hi, I am Tom.

27
00:02:26,520 --> 00:02:32,420
Now, you can also see both of them can despite the Tom message.

28
00:02:32,580 --> 00:02:37,900
So this is how to receive the message from other clients in the same room.
