Handler socket implementation for clojure