public function isReady() { if ($this->actualLength > $this->payloadLength) { throw new WebSocketFrameSizeMismatch($this); } return $this->actualLength == $this->payloadLength; }