Read and write fressian data by clojurescript.
Add the following to your project.clj
[net.unit8/fressian-cljs "0.1.0"]
Fressian-cljs uses ArrayBuffer to read/write fressian objects.
(ns myapp
(:require [fressian-cljs.core :as fress])
(let [connection (js/WebSocket. "ws://websocket-host")]
(set! connection -onmessage #(println (fress/read %)))
(.send connection (fress/write {:a 1 :b 2})))
Copyright (C) 2014 kawasima
Distributed under the Eclipse Public License, the same as Clojure.