Summary

In this chapter, you have learned about the basic principles of WebSocket applications and how to build them using the Ratchet framework. In contrast to most PHP applications, Ratchet apps are deployed as single, long-running PHP processes that do not require process managers such as FPM or web servers. This requires a quite different deployment, which we have also looked into in this chapter, both for development and for high-scale production environments.

In addition to simply serving WebSockets using Ratchet, we have also looked at how you can integrate Ratchet applications with other frameworks (for example, the Slim framework that you have already worked with in Chapter 5, Creating a RESTful Web Service) using the PSR-7 standard.

Get PHP 7 Programming Blueprints 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.