CrossClj

0.2.0 docs

SourceDocs



RECENT

    fressian-cljs

    Clojars

    Sep 17, 2015


    OWNER
    Yoshitaka Kawashima
    TIS Inc.
    Cafe renoir in Tokyo, Japan
    kawasima1016@gmail.com
    unit8.net

    Readme

    Index of all namespaces


    « Project + dependencies

    The README below is fetched from the published project artifact. Some relative links may be broken.

    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.