Skip to content
Fressian library for clojurescript
Clojure
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src/cljs/fressian_cljs
test
.gitignore
.travis.yml
README.md
project.clj

README.md

fressian-cljs Build Status

Read and write fressian data by clojurescript.

Installation

Add the following to your project.clj

[net.unit8/fressian-cljs "0.1.0"]

Usage

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})))

License

Copyright (C) 2014 kawasima

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.