Skip to content

Instantly share code, notes, and snippets.

@amalloy
Created August 24, 2011 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amalloy/1167449 to your computer and use it in GitHub Desktop.
Save amalloy/1167449 to your computer and use it in GitHub Desktop.
(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