Permalink
Browse files

Merge pull request #1 from hukeli/master

support sending event types
  • Loading branch information...
ninjudd committed Mar 8, 2014
2 parents b8bcc02 + 36712d0 commit 051a27aa5592a49c1f1b45f90236d5b11866b94c
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/ninjudd/eventual/server.clj
@@ -22,6 +22,8 @@
(when event
(when-let [event-id (:event-id (meta event))]
(>! out (str "id: " event-id "\n")))
+ (when-let [event-type (:event-type (meta event))]
+ (>! out (str "event: " event-type "\n")))
(>! out (str "data: " (f event) "\n\n"))
(recur))
(= ch keepalive)

0 comments on commit 051a27a

Please sign in to comment.