1 00:00:00,450 --> 00:00:08,460 In this part, we are going to at the function is to perform such that use it can add a new form so 2 00:00:08,460 --> 00:00:12,630 the user can add a deal with them and send this data to our server. 3 00:00:14,310 --> 00:00:15,780 So for us, we are going to add. 4 00:00:17,100 --> 00:00:26,280 The constant and then boom and then boom and are going to use the USA, so we have to you stay here 5 00:00:27,300 --> 00:00:34,440 and you go to USA and the initial value of the room is empty space. 6 00:00:35,580 --> 00:00:42,990 And at here, we said the value is equal to well and on change. 7 00:00:44,570 --> 00:00:47,540 Is echo to E and then. 8 00:00:48,960 --> 00:00:53,310 That room to eat target value. 9 00:00:54,360 --> 00:01:02,040 So whenever we type in something, he will change the value of the room, so on the phone we have to 10 00:01:02,040 --> 00:01:07,800 add the ensemble functions and then we add it and some big function. 11 00:01:09,990 --> 00:01:10,830 So on the top. 12 00:01:11,980 --> 00:01:13,300 We are going to create a Hendo. 13 00:01:19,790 --> 00:01:28,120 And every parent, the default behavior by having the parent default and we are going to use the socket 14 00:01:28,880 --> 00:01:33,170 and here we are going to add the new package. 15 00:01:36,070 --> 00:01:38,140 We use NPM install. 16 00:01:39,850 --> 00:01:51,670 And then Sopot, so I came at the also like Servia, we use specific motion to prevent some problems 17 00:01:51,670 --> 00:01:52,760 from the latest version. 18 00:01:53,230 --> 00:02:02,740 So now we are going to enforce the IO from the socket, but I Ochieng and then it here. 19 00:02:05,350 --> 00:02:13,000 We are going to let the talk head and we are going to use to use if I you so we have to import a youth 20 00:02:13,000 --> 00:02:13,510 if at. 21 00:02:15,140 --> 00:02:20,060 And so we are going to connect to the server and if you remember. 22 00:02:22,530 --> 00:02:28,120 At the surface, we already had the pot at five thousand, so we're back to the hotel. 23 00:02:28,620 --> 00:02:31,050 We have to create and point. 24 00:02:36,410 --> 00:02:38,960 Two local hold, 5000. 25 00:02:40,720 --> 00:02:50,140 And then we used to use evet and then we create a soccer is equal to eyehole and we passed the end point 26 00:02:50,560 --> 00:03:03,220 and then when we disconnect the browser are going to emit to disconnect the turn of the socket and just 27 00:03:03,250 --> 00:03:05,080 change depends on the end point. 28 00:03:05,530 --> 00:03:07,800 And Damron, this is some bait. 29 00:03:07,900 --> 00:03:13,350 We are going to image a great room and we image the values of the world. 30 00:03:14,830 --> 00:03:19,820 And also we are also got a lot of room so we can see at the content side at this stage. 31 00:03:21,310 --> 00:03:28,240 And then after we stop it, we want to set the values of the room to be empty again so we can create 32 00:03:28,240 --> 00:03:30,390 a new room again. 33 00:03:31,000 --> 00:03:36,910 So now we type AMPM start to start the website again. 34 00:03:37,270 --> 00:03:42,760 You can see there is some error here because we haven't turned on the server. 35 00:03:43,630 --> 00:03:53,480 So we go to the terminal and then we go to the server and then we type in that. 36 00:03:54,100 --> 00:04:02,110 Now if we refresh again, you can see there is no arrow and this just half the era of we use the cost 37 00:04:02,110 --> 00:04:03,400 instead of cofferdam. 38 00:04:04,120 --> 00:04:05,230 So we find this. 39 00:04:05,830 --> 00:04:12,130 So we should turn this to hafnium and also here at the card. 40 00:04:13,790 --> 00:04:16,730 We also changed it to hafnium. 41 00:04:20,280 --> 00:04:22,600 And do we also change this to cost? 42 00:04:23,490 --> 00:04:31,260 Now, there's no error and we can try to type some room, for example, from one and then create room 43 00:04:31,260 --> 00:04:33,360 and you can see it here. 44 00:04:33,990 --> 00:04:36,090 There will be one displayed in the console. 45 00:04:36,100 --> 00:04:38,610 So the function work at the mine site.