struct Amber::Support::ClientReload

Overview

Allow clients browser reloading using WebSockets and file watchers.

Defined in:

amber/support/client_reload.cr

Constant Summary

FILE_TIMESTAMPS = {} of String => String
Log = ::Log.for(self)
SESSIONS = [] of HTTP::WebSocket
WEBSOCKET_PATH = "client-reload"

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def log(message) #

[View source]
def run #

[View source]