Well, the issue is that all phpdoc of the class is talking about socket, while meaning something else. This is even more confusing than the similar class names IMO.

StreamResponse may not be the best name either because of the confusion.