Created
March 3, 2015 19:53
-
-
Save ztellman/804274e43754ef9e8f33 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| (require '[manifold.deferred :as d]) | |
| (require '[manifold.stream :as s]) | |
| (defn tcp-handler [s conn-info] | |
| (d/let-flow [s (wrap-stream protocol s) | |
| msg (s/take! s) | |
| _ (s/put! s (response msg))] | |
| (set-up-message-handling s))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment