![image](/api/v2/epubs/9780071827195/files/images/common.jpg)
CHAPTER
3
Basic Messaging
In this chapter, we will examine the fundamental aspects of messaging in the Java WebSocket API, which includes many means by which to send and consume messages. We will look at the most straightforward and widespread way to send messages: synchronous sending and receiving of messages. In order to illustrate the concepts and functions we will cover, we will look in detail at the DrawingBoard application. This application uses a Java client front end, so we will introduce the client API of the Java WebSocket API at the same time.
Messaging Overview
You will remember from Chapter 2 that the WebSocket protocol defines three ...
Get Java WebSocket Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.