Sha256: b3a158d4dee612c97ddf72e6130f01cb917b884604356c9ba2267b6274a48382

Contents?: true

Size: 1020 Bytes

Versions: 29

Compression:

Stored size: 1020 Bytes

Contents

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />

    <script>
        // Simple code to handle reload messages
        if (document.location.protocol == 'https:') {
          var wsProto = 'wss';
        } else {
          var wsProto = 'ws';
        }

        this.socket = new WebSocket(wsProto + '://' + document.location.host + '/socket');

        // Log errors
        this.socket.onerror = function (error) {
          document.location.reload();
        };

        // Log messages from the server
        this.socket.onmessage = function(message) {
          if (message.data == '["reload"]') {
            document.location.reload();
          }
        };

        this.socket.onclose = function(error) {
          document.location.reload();
        };
    </script>
  </head>
  <body>
    <h2><%= CGI::escapeHTML(error.inspect) %></h2>

    <% if error.respond_to?(:backtrace) %>
<pre>
<%= error.backtrace.map {|l| CGI::escapeHTML(l) }.join("<br />") %>
</pre>
    <% end %>
  </body>
</html>

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
volt-0.9.7.pre8 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.7.pre7 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.7.pre6 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.7.pre5 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.7.pre3 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.7.pre2 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.6 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.6.pre3 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.6.pre2 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.6.pre1 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.5 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.5.pre12 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.5.pre11 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.5.pre9 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.5.pre8 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.5.pre7 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.5.pre6 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.5.pre5 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.5.pre4 lib/volt/server/forking_server/boot_error.html.erb
volt-0.9.5.pre3 lib/volt/server/forking_server/boot_error.html.erb