public createServer ( Kraken\Loop\LoopInterface $loop ) : |
||
$loop | Kraken\Loop\LoopInterface | |
return |
public function createServer(LoopInterface $loop)
{
$this->listener = new SocketListener($this->endpoint, $loop);
$this->server = new SocketServer($this->listener);
$this->http = new HttpServer($this->server);
$this->router = new HttpRouter($this->http);
return $this->router;
}