This component is responsible for parsing incoming HTTP requests. It's purpose is to buffer data until it receives a full HTTP header request and pass it on. You can use this as a raw HTTP server (not advised) but it's meant for upgrading WebSocket requests.
Note: This component is bundled within the App class.
As found in the API Docs: Triggered events are propagated through a HttpServerInterface object passed to the __construct.
<?php
// Your shell script
use Ratchet\Http\HttpServer;
use Ratchet\Server\IoServer;
$http = new HttpServer(new MyWebPage);
$server = IoServer::factory($http);
$server->run();