public __construct ( Ratchet\Client\WebSocket $conn, React\EventLoop\LoopInterface $loop ) | ||
$conn | Ratchet\Client\WebSocket | |
$loop | React\EventLoop\LoopInterface |
public function __construct($conn, LoopInterface $loop)
{
$this->conn = $conn;
$this->pingSeq = 0;
$this->pingRequests = [];
$this->loop = $loop;
}