I am trying to implement a simple asynchronous chat service using Aleph and
Lamina. However, it looks like the enqueue function coming from lamina
cannot be implemented and causes an exception. This is what my chat
function looks like:
(defn chat [ch request]
"View handler that handles a chat room. If it's not
a websocket request then return a rendered html response."
(let [params (:route-params request)
room (:room params)]
(if (:websocket request)
(chat-handler ch room)
(enqueue ch (wrapped-sync-app request)))))
I don't understand why the value of (wrapped-sync-app request) is nil. Any
feedback would be helpful.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.