src/StaticApplicationAbstract.php
public function initHttp()
    {
        $this->socket = Reaction::create(SocketServerInterface::class);
        $this->http = Reaction::create(Http::class, [$this->middleware]);
        $this->http->listen($this->socket);
        //Exception handler
        $this->http->on('error', function(\Throwable $error) {
            $this->logger->alert($error);
        });
    }
public function initHttp()
    {
        $this->socket = Reaction::create(SocketServerInterface::class);
        $this->http = Reaction::create(Http::class, [$this->middleware]);
        $this->http->listen($this->socket);
        //Exception handler
        $this->http->on('error', function(\Throwable $error) {
            $this->logger->alert($error);
        });
    }
Initialize with React HTTP and Socket servers
Used in web application