Skip to content
Permalink
Browse files

Default retry duration

  • Loading branch information...
y2k2mt committed Nov 14, 2018
1 parent 12c8e90 commit 9fff239339e5eb5e36286ff11a27b3788cae5174
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/sse.cr
@@ -120,7 +120,7 @@ module HTTP::ServerSentEvents
end

private def parse_to_hash(entry : Array(String)) : Hash(String, (String | Array(String)))
event_source = {"id" => "", "datas" => [] of String, "retry" => "1000", "event" => ""}
event_source = {"id" => "", "datas" => [] of String, "retry" => "#{@@default_retry_duration}", "event" => ""}
entry.each { |line|
i = line.index(':')
if i

0 comments on commit 9fff239

Please sign in to comment.
You can’t perform that action at this time.