To run the application, open the terminal and run the following command:
sails lift
Now, we can visit our application at http://localhost:1337/
, as shown in the following image:
To add a new message, you need to add the name or leave it as it is and type your message as shown in the following screenshot:
Now, let's test the socket broadcasting. Open two windows and send messages one after another, as shown in the following image: