There are two parts we need to build to implement real-time communication—one is the client side and the other is the server side. As mentioned earlier, we will use SockJS (http://sockjs.org) to implement the client side and Spring's WebSocket implementation on the server side.