Java Reference
In-Depth Information
Figure 14.1. Chat support via WebSockets in ActionBazaar
Listing 14.11. ChatServer singleton bean—manages client and CSR chat sessions
The code in this listing is relatively straightforward. The
ChatServer
tracks the list of
CSRs and clients who aren't chatting yet
. It also tracks all of the sessions, regardless of