Open awb99 opened 11 months ago
Goldly
At cljs compiletime add cljs namespaces to sci context. Implementation: scan classpath, consolidate edn files, dynamically create mapping.clj. Extension/discover (add-to-bundle [cljs-ns-seq]) (write-sci-includes [generated-ns path) (
Goldly-service extension {:provides {:goldly-service goldly.service/add-services} :webly/compile {:cljs [goldly.service] :sci-ns [[goldly.service {}]]} :webly/run {:clj-route [:{“goldly/service” goldly.service/http-handler “Goldly/websocket-start” Goldly.service/websocket websocket-req-res protocol. Ring-handler for web callbacks1
(def default-config {:permissions {:users [] :allow [:all true]}})
(defn start-goldly-service [{:keys [permissions] Print warnings (Start websocket-server [permission].) (In handler set websocket server atom) State)
Defn stop-goldly-service [state] Stop websocket server)
(goldly.service/send-all! gs msg) (goldly.service/add-topic-handler gs id-kw fun)
…….
(Start-goldly
Webly (Start-webserver [port clj-routes]) (start-webserver-ext [extensions]) (Start-webserver
{:exts {:start (discover-extensions {:disabled-exts [] :path “target”})} :webserver {:start (start-ws-ext (clip/ref :exts))} :goldly-service {:start (start-gs (:users config))}
Webserver (clj-api-routes [exts] (reduce concat [] (get-key exts :clj-api [])))
{:exts {:start (extension/discover)} :webly/app {:start (webly.spa/start {: :webly/config {} :webly/ws
Extension loader. Css loader. Client-config