{"action":"closed","issue":{"url":"https://api.github.com/repos/hseeberger/akka-sse/issues/50","labels_url":"https://api.github.com/repos/hseeberger/akka-sse/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/hseeberger/akka-sse/issues/50/comments","events_url":"https://api.github.com/repos/hseeberger/akka-sse/issues/50/events","html_url":"https://github.com/hseeberger/akka-sse/issues/50","id":95409212,"number":50,"title":"Heartbeat alternative to EventPublisher","user":{"login":"danielwegener","id":2953619,"avatar_url":"https://avatars.githubusercontent.com/u/2953619?v=3","gravatar_id":"","url":"https://api.github.com/users/danielwegener","html_url":"https://github.com/danielwegener","followers_url":"https://api.github.com/users/danielwegener/followers","following_url":"https://api.github.com/users/danielwegener/following{/other_user}","gists_url":"https://api.github.com/users/danielwegener/gists{/gist_id}","starred_url":"https://api.github.com/users/danielwegener/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielwegener/subscriptions","organizations_url":"https://api.github.com/users/danielwegener/orgs","repos_url":"https://api.github.com/users/danielwegener/repos","events_url":"https://api.github.com/users/danielwegener/events{/privacy}","received_events_url":"https://api.github.com/users/danielwegener/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-16T11:02:41Z","updated_at":"2015-07-18T08:14:09Z","closed_at":"2015-07-18T08:14:09Z","body":"Currently one can provide its own Source[ServerSentEvent,_] to publish ServerSentEvents. But to support heart-beats the user needs to implement the abstract  `EventPublisher` (and thus breaking out of akka-streams).\r\n\r\nAs discussed at [gitter](https://gitter.im/hseeberger/akka-sse?at=5593b06bb4ce4e473250fef7) we could provide the heartbeat-feature as its own Flow such that users could use their own event sources and plug it into (suggestion) `withHeartbeat(source:Source[T:ToServerSentEvent]):Source[ServerSentEvent]` .\r\n\r\n@jrudolph had the idea to simply create a flow from a tick source and a flexi merge or to otherwise try dynamic stages (still have too look them up)."}}