Skip to content

Commit

Permalink
support sending event types
Browse files Browse the repository at this point in the history
  • Loading branch information
keli committed Mar 7, 2014
1 parent b8bcc02 commit 36712d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ninjudd/eventual/server.clj
Expand Up @@ -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)
Expand Down

0 comments on commit 36712d0

Please sign in to comment.