HTML and CSS Reference
What are we going to make?
Throughout this topic, we are going to implement a real-world project: a simple, multi-
user, WebSocket-based, chatting application. Live chat is a very common feature
among all modern social networks. We will learn, step-by-step, how to configure the
web server, implement the HTML5 client, and transfer messages between them.
Apart from plain text messages, we'll see how WebSockets handle various types of
data, such as binary files, images, and videos. Yeah, we'll demonstrate real-time me-
dia streaming, too!
Moreover, we are going to enhance the security of our app, examine some known se-
curityrisksandfind outhowtoavoidcommonpitfalls. Furthermore, we'll takeaglance
at some fallback techniques targeting those poor guys who cannot (or do not want to)
update their browsers yet.
Last but not least, we'll get mobile. You chat using a desktop browser, a phone, or a
tablet. Wouldn't it be nice if you could use the same techniques and principles across
multiple targets? Well, through reading this topic, you'll find out how to easily convert
your web app into a native mobile and tablet application as well.