diff --git a/clj-browserchannel-server/project.clj b/clj-browserchannel-server/project.clj index 1cab053..012840c 100644 --- a/clj-browserchannel-server/project.clj +++ b/clj-browserchannel-server/project.clj @@ -1,4 +1,4 @@ -(defproject net.thegeez/clj-browserchannel-server "0.0.1" +(defproject net.thegeez/clj-browserchannel-server "0.0.2" :description "BrowserChannel server implementation in Clojure" :dependencies [[org.clojure/clojure "1.3.0"] [ring/ring-core "1.1.0-beta3"] diff --git a/clj-browserchannel-server/src/net/thegeez/browserchannel.clj b/clj-browserchannel-server/src/net/thegeez/browserchannel.clj index 77472f8..d362e73 100644 --- a/clj-browserchannel-server/src/net/thegeez/browserchannel.clj +++ b/clj-browserchannel-server/src/net/thegeez/browserchannel.clj @@ -461,7 +461,7 @@ outstanding-bytes (let [buffer (:array-buffer session)] (if (empty? buffer) 0 - (reduce + 0 (map count (map json/json-str) buffer))))] + (reduce + 0 (map count (map json/json-str buffer)))))] [has-back-channel last-sent-array-id outstanding-bytes])) ;; convience function to send data to a session