Thruway\Transport\RatchetTransport::__construct PHP Méthode

__construct() public méthode

Constructor
public __construct ( Ratchet\ConnectionInterface $conn, React\EventLoop\LoopInterface $loop )
$conn Ratchet\ConnectionInterface
$loop React\EventLoop\LoopInterface
    public function __construct($conn, LoopInterface $loop)
    {
        $this->conn = $conn;
        $this->pingSeq = 1234;
        $this->pingRequests = [];
        $this->loop = $loop;
    }