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.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |