(-actual this)
(-connection-data this)
(-send-message this channel-id msg-data callback)
(create-initial-state {:keys [unique-id http-server-root server-port server-ip
ring-handler resolved-ring-handler
open-file-command compile-wait-time
ansi-color-output]
:as opts})
(exec-open-file-command {:keys [open-file-command] :as server-state} msg)
(get-open-file-command open-file-command
{:keys [file-name file-line file-column]})
(handle-client-msg {:keys [browser-callbacks log-writer] :as server-state} data)
(send-message-with-callback figwheel-server channel-id msg-data callback)
(server {:keys [server-port server-ip http-server-root resolved-ring-handler
log-writer]
:as server-state})
This is the server. It is complected and its OK. Its trying to be a basic devel server and also provides the figwheel websocket connection.
This is the server. It is complected and its OK. Its trying to be a basic devel server and also provides the figwheel websocket connection.
(setup-file-change-sender
{:keys [file-change-atom compile-wait-time connection-count] :as server-state}
{:keys [desired-build-id] :as params}
wschannel)
(validate-file-selected-msg {:keys [file-name file-line file-column] :as msg})
(wrap-no-cache handler)
Add 'Cache-Control: no-cache' to responses. This allows the client to cache the response, but requires it to check with the server every time to make sure that the response is still valid, before using the locally cached file.
This avoids stale files being served because of overzealous browser caching, while still speeding up load times by caching files.
Add 'Cache-Control: no-cache' to responses. This allows the client to cache the response, but requires it to check with the server every time to make sure that the response is still valid, before using the locally cached file. This avoids stale files being served because of overzealous browser caching, while still speeding up load times by caching files.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close