def reload(pages)
      pages.each do |p|
        Jekyll.logger.info("Page #{p.name}, #{p.basename}, #{p.ext}, #{p.permalink}, #{p.url}")
        msg = {
          :command => 'reload',
          :path => p.url,
          :liveCSS => true,
        }

        # TODO Add support for override URL?
        # See http://feedback.livereload.com/knowledgebase/articles/86220-preview-css-changes-against-a-live-site-then-uplo

        Jekyll.logger.debug("LiveReload:", "Reloading #{p.url}")
        @websockets.each do |ws|
          ws.send(JSON.dump(msg))
        end
      end
    end
def reload(pages)
      pages.each do |p|
        Jekyll.logger.info("Page #{p.name}, #{p.basename}, #{p.ext}, #{p.permalink}, #{p.url}")
        msg = {
          :command => 'reload',
          :path => p.url,
          :liveCSS => true,
        }

        # TODO Add support for override URL?
        # See http://feedback.livereload.com/knowledgebase/articles/86220-preview-css-changes-against-a-live-site-then-uplo

        Jekyll.logger.debug("LiveReload:", "Reloading #{p.url}")
        @websockets.each do |ws|
          ws.send(JSON.dump(msg))
        end
      end
    end
For a description of the protocol see http://feedback.livereload.com/knowledgebase/articles/86174-livereload-protocol