Skip to content

Instantly share code, notes, and snippets.

@amalloy amalloy/for.clj
Created Aug 24, 2011

What would you like to do?
(defn subscribe* [http-url path query-map]
(with-open [client (client/create-client)]
(let [response (stream-seq client http-url path query-map)]
(for [content (client/string response)
line (re-seq #".+\r\n" content)]
(json/read-json line)))))
(doseq [s (subscribe-seq xx yy zz)]
(println s))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.