   (if (:websocket request)
     (dosync
       (ref-set chat-channel ch)
-      (chat-handler ch "iyye")
-      )
+      (chat-handler ch "iyye"))
     (enqueue ch (wrapped-sync-app request))))
-
 (defroutes app-routes
            "Routes requests to their handler function. Captures dynamic variables."
            (GET ["/chat/iyye"] {}
-                (wrap-aleph-handler chat))
+             (wrap-aleph-handler chat))
            (GET ["/"] {} "To access Iyye, go to /chat/iyye <a href=\"http://localhost:8080/chat/iyye\">iyye chat</a>")
            ;;Route our public resources like css and js to the static url
            (route/resources "/static")

      (wrap-resource "public")
      (wrap-file-info)))


(defn chat [ch request]
  "View handler that handles a chat room. If it's not

  all the routes we specified and is websocket ready."
  (start-http-server (wrap-ring-handler app-routes)
                     {:host "localhost" :port 8080 :websocket true}))

; move to iyye!
(defn chat-init [ch]
  "register callback for receive msg"
  (receive-all ch lispy-chat-process-input))

