Click On Tyler Support


Contact Us

Support Home » VirtualHostX » How VirtualHostX Works

VHX7: What is AutoRefresh

Last Updated May 26, 2016

AutoRefresh is a feature in VirtualHostX 7.0 that monitors your virtual host's website folder. Whenever it detects a change inside that folder, VirtualHostX will automatically refresh your web browser. It's a magical way to speed up your workflow when building a website. There's no longer a need to save your changes, flip to your browser, and manually refresh. It all happens automatically now.

To enable AutoRefresh on your website, just paste AutoRefresh JavaScript that VirtualHostX provides into your HTML.

Here's a copy of the JavaScript VHX gives you...

    <script type="text/javascript">
        var connection = new WebSocket('ws://localhost:62183');
        connection.onmessage = function (e) {
            location.reload();
        };
    </script>