#'lamina.core. - No implementation of method: :enqueue for class: nil

2016-03-06 Thread Nasko
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

Re: #'lamina.core. - No implementation of method: :enqueue for class: nil

2016-03-06 Thread Kevin Downey
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 [

Re: #'lamina.core. - No implementation of method: :enqueue for class: nil

2016-03-06 Thread Nasko
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