-
-
Save schmee/522e29e355428a627fe2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn listen [sock] | |
(let [running (atom true)] | |
(let [reader (io/reader sock)] | |
(while @running | |
(let [msg-in (read reader)] | |
(println msg-in)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment