Thruway\Peer\RouterInterface::addInternalClient PHP Method

addInternalClient() public method

Add a client that uses the internal transport provider
public addInternalClient ( Thruway\Peer\ClientInterface $client )
$client Thruway\Peer\ClientInterface
    public function addInternalClient(ClientInterface $client);

Usage Example

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