public function start()
    {
        $this->loop = React\EventLoop\Factory::create();
        $socket = new React\Socket\Server($this->loop);
        
        $http = new React\Http\Server($socket);
        $http->on('request', $function = $this->requestHandler->getHandlerFunction());
        
        $socket->listen($this->requestHandler->getPort(), $this->requestHandler->getHost());
        $this->loop->run();
    }