public function register()
    {
        /* @var CClientScript $cs */
        if (isset($this->host, $this->port) && ($cs = Yii::app()->getComponent($this->clientScriptID)) !== null) {
            $cs->registerScriptFile(
                "//{$this->host}:{$this->port}/livereload.js",
                CClientScript::POS_END
            );
        }
    }