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);
        });
    }