This document discusses building a real-time chat application using websockets and the Jetty embedded server. It begins with an introduction and agenda. It then covers real-time technologies like AJAX polling, long-polling, and websockets. It discusses the Jetty embedded server and how to create a websocket server with Jetty annotations. It provides an example chat application architecture using HTTP/JSON APIs and websockets for global and private chat. It also discusses maintaining friend lists, user statuses, and performance.