__construct() public method

public __construct ( Ratchet\WebSocket\Encoding\ValidatorInterface $validator = null )
$validator Ratchet\WebSocket\Encoding\ValidatorInterface
Example #1
0
 /**
  * @param ValidatorInterface|null $validator
  */
 public function __construct(ValidatorInterface $validator = null)
 {
     parent::__construct($validator);
     $this->verifier = new HandshakeVerifier();
 }