Whenever the socket receives a message, display it.
Each socket emits disconnect event which will be called whenever a client disconnects.
So, authenticated used can only access this page.
You'll see how they are used later in this tutorial.
Basic syntax of both are: socket.
I had to go 1-1 on git files to realise that I was missing this.
In ChatTableViewCell, we will add an image view to show the profile pic of the user, and we will also add the UILabels to show the name and message of the user, as shown below.
I am working on a Chat website.