WebSockets are a private channel from the web browser and the servers or vice versa only using the HTTP protocol with HTML 5. Your web page can receive events, so you can keep listening for a message without click buttons. Finally, you can receive real-time messages from your web page. A chat system is a simpler example that illustrates WebSockets. In this chapter, we will start by a chat, going forward to more complex examples. Here are the focal points we will go over:
- History of WebSockets
- How write a chat with WebSockets
- Notes on the implemented WebSocket in WildFly 10
- How secure a WebSocket
- All available annotations for our enterprise components