Summary
In this chapter, we covered the Jakarta API for WebSocket, a Jakarta EE API for developing WebSocket server endpoints and clients:
- We first saw how to develop WebSocket server endpoints by taking advantage of the Jakarta API for WebSockets
- Then, we covered how to develop web-based WebSocket clients using JavaScript
- Finally, we explained how to develop WebSocket client applications in Java
WebSockets allow us to implement real-time, two-way communication between a web browser and a web server. As we saw in this chapter, the Jakarta EE WebSocket API takes care of the low-level details allowing us to develop WebSocket endpoints via a few simple annotations.