October 2016
Intermediate to advanced
320 pages
6h 39m
English
In this chapter, we will build a real-time chat application usingWebSocket. You will learn how to use the Ratchet framework to build standalone WebSocket and HTTP servers with PHP and how to connect to WebSocket servers in a JavaScript client application. We will also discuss how you can implement authentication for WebSocket applications and how to deploy them in a production environment.
In this chapter, we'll be working extensively with WebSockets. To fully understand the workings of the chat application that we're going to build, let's first have a look at how WebSockets work.
The WebSockets protocol is specified in RFC 6455 and uses HTTP as the underlying transport protocol. In ...
Read now
Unlock full access