Kraken\Network\Websocket\WsServer::__construct PHP Method

__construct() public method

public __construct ( Kraken\Network\NetworkComponentAwareInterface $aware = null, Kraken\Network\NetworkComponentInterface $component = null )
$aware Kraken\Network\NetworkComponentAwareInterface
$component Kraken\Network\NetworkComponentInterface
    public function __construct(NetworkComponentAwareInterface $aware = null, NetworkComponentInterface $component = null)
    {
        $this->wsServer = $component === null ? new NullServer() : $component;
        $this->wsDriver = new WsDriver();
        $this->connCollection = new SplObjectStorage();
        if ($aware !== null) {
            $aware->setComponent($this);
        }
    }