Communicating via WebSockets has been around for a long time and plays an integral part in server-to-server, server-to-client, and client-to-server communications. WebSockets allow open and constant communication between both parties, thus allowing data to be sent and received without the need for "polling" for changes.
A commonplace where you might see WebSockets being used would be a chat window – a constant line of communication between each device (usually via a server). Think of it as the "telephone line" of the internet (which is actually not too far from the truth).
In this section, we are going to take our previously built Vapor project and communicate in real time with a companion iOS app.
Getting started
For this section, you'll need the completed project from our previous section. Feel free to continue to work on the sample project found in the Git repository.
In addition, you'll need the TaskAPIApp...