aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/eventsource/src/eventsource_handler.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/eventsource/src/eventsource_handler.erl b/examples/eventsource/src/eventsource_handler.erl
index d4f51c1..4a30b9b 100644
--- a/examples/eventsource/src/eventsource_handler.erl
+++ b/examples/eventsource/src/eventsource_handler.erl
@@ -11,7 +11,7 @@ init(Req0, Opts) ->
<<"content-type">> => <<"text/event-stream">>
}, Req0),
erlang:send_after(1000, self(), {message, "Tick"}),
- {cowboy_loop, Req, Opts, 5000}.
+ {cowboy_loop, Req, Opts}.
info({message, Msg}, Req, State) ->
cowboy_req:stream_body(["id: ", id(), "\ndata: ", Msg, "\n\n"], nofin, Req),