pink-gorilla / webly

reagent/reframe application skelleton
7 stars 2 forks source link

serialization #21

Closed awb99 closed 3 years ago

awb99 commented 3 years ago

transit - fast, but not for persistence edn - slow but good for persistence Nippy is an attempt to provide a reliable, high-performance drop-in alternative to the reader.

; extend edn reader:

(def ^:private default-readers {'ig/ref ref, 'ig/refset refset}) (defn read-string "Read a config from a string of edn. Refs may be denotied by tagging keywords with #ig/ref." ([s] (read-string {:eof nil} s)) ([opts s] (let [readers (merge default-readers (:readers opts {}))] (edn/read-string (assoc opts :readers readers) s))))

awb99 commented 3 years ago

aded custom transit packers to api endpoints and websocket.