func ClockSource(es eventsource.EventSource) { id := 1 for { es.SendEventMessage(fmt.Sprintf("%d", es.ConsumersCount()), "consumer-count", "") es.SendEventMessage("tick", "tick-event", strconv.Itoa(id)) id++ time.Sleep(5 * time.Second) } }