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
On 03/05/2016 10:18 PM, Nasko wrote:
> 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 [
Thanks for the insight. I am indeed using Compojure for routing and wasn't
aware it returns nil by default. For reference, here is the
wrapped-sync-app function along with sync-app which is used to render a
response from the chat page:
(defn sync-app [request]
{:status 200
:headers {"conte