At this point, they start going to create a import such that the USA can send a message to the server,
so first we are going to come inside and go to the chat page and we are going to use the U.S. state.
So we have to import the USA from we add, and then we are going to create a message.
And that message is equal to the U.S. state.
And an empty string we sent that in is old value is empty.
And then we are going to create a send message functions.
First, we are going to prevent a answer and.
Just refreshed the page when we passed the sand message button.
And we are going to check if this message is empty, so a message and we are going to a lot the message
that we typed in the console and we are going to commit this to the server.
So we use soccer emit.
And the named this event as their message, and then we passed a message.
And also the comedy.
And then after we passed these two values, we are going to kind of matter.
So we use that message.
To be the empty string.
And if you remember, if you go to the chat and then you can click on the logo and back to the homepage.
So we do not need this.
So we do not need to go to the home button and then we can delete this one and we create a form.
And then we create an input field and the value we produce to the message and on change is DeCota that
you went and we you and talk untaught talk value.
And then on key press, we will also give the U.N. key equal to enter and we will send a message, otherwise
we will do nothing.
So alas, we have to add on some meat to trigger the same message functions.
So we used to own stock, which is equal to the same message.
And before the end of the fall, we create a button and send message.
So now we can go to the website and take a try.
Now, this area is because we have installed our server so we can ignore this and then we try something,
now you can send a message to the console and decided, OK, here, as we expected, because we haven't
received it at the surface outside.
So, you know, check these coalbed, but you already can show that this function already work for sending
the message.