Browse files

Stream appmon messages to browser

  • Loading branch information...
1 parent 5548fd6 commit 02f4b9ea7576efb238cf2988982be62fb52353aa Hunter Morris committed Jul 10, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/bigwig_http_stats_stream.erl
View
4 src/bigwig_http_stats_stream.erl
@@ -26,6 +26,10 @@ websocket_handle({bigwig, {bigwig_stats_sender, Stats}}, Req, State) ->
Reply = jsx:term_to_json([{stats, Stats}]),
{reply, Reply, Req, State};
+websocket_handle({bigwig, {bigwig_appmon, Stats}}, Req, State) ->
+ Reply = jsx:term_to_json([{appmon, Stats}]),
+ {reply, Reply, Req, State};
+
websocket_handle({bigwig, _}, Req, State) ->
{ok, Req, State};

0 comments on commit 02f4b9e

Please sign in to comment.