Inheritance: extends Thruway\Peer\PeerInterface
Esempio n. 1
0
 /**
  * Called by the router when it is added
  *
  * @param RouterInterface $router
  * @param LoopInterface $loop
  */
 public function initModule(RouterInterface $router, LoopInterface $loop)
 {
     $this->router = $router;
     $this->setLoop($loop);
     $this->router->addInternalClient($this);
 }
Esempio n. 2
0
 /**
  * Execute the console command.
  *
  * @param RouterInterface $router
  *
  * @return mixed
  */
 public function handle(RouterInterface $router)
 {
     $this->info('Start Thruway WAMP router');
     $router->start($this->option('loop'));
 }