Sha256: 7c86b9e0e69ed4ab8919c7becbc5843354e335ec3baf494f8df9ed23749bd90c

Contents?: true

Size: 256 Bytes

Versions: 3

Compression:

Stored size: 256 Bytes

Contents

(function () {
    var socket = new WebSocket("ws://localhost:5678/websocket");
    socket.onmessage = function () {
        window.location.reload();
    };
    socket.onerror = function (error) {
        console.log("Error: " + error.type);
    };
})();

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blogdoor-0.0.5 lib/javascripts/livereload.js
blogdoor-0.0.4 lib/javascripts/livereload.js
blogdoor-0.0.3 lib/javascripts/livereload.js