Merge pull request #114 from mlaventure/events-stream-log-end-event
Add a new "live" Event type
This commit is contained in:
commit
2868670ba6
1 changed files with 5 additions and 0 deletions
|
@ -168,6 +168,11 @@ func (s *Supervisor) Events(from time.Time) chan Event {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Notify the client that from now on it's live events
|
||||||
|
c <- Event{
|
||||||
|
Type: "live",
|
||||||
|
Timestamp: time.Now(),
|
||||||
|
}
|
||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue