That makes a lot more sense than what I had. I did not think it through,
and I definitely prefer your suggestion.

On Thursday, May 8, 2014, Anton Ageev <notifications@github.com> wrote:

> In eventsource.go:
>
> > @@ -16,10 +16,14 @@ type eventMessage struct {
> >  	data  string
> >  }
> >
> > +type retryMessage struct {
> > +	retry []byte
>
> Why not t time.Duration here and []byte(fmt.Sprintf("retry: %d\n\n", t))in
> retryMessage.prepareMessage()?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/antage/eventsource/pull/10/files#r12435693>
> .
>