Remove keepalive
This commit is contained in:
@ -3,7 +3,6 @@ package api
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"atri.dad/lib"
|
||||
"atri.dad/lib/pubsub"
|
||||
@ -30,10 +29,6 @@ func SSE(c echo.Context, pubSub pubsub.PubSub) error {
|
||||
|
||||
lib.SetSSEHeaders(c)
|
||||
|
||||
// Create a ticker that fires every 15 seconds
|
||||
ticker := lib.CreateTickerAndKeepAlive(c, 30*time.Second)
|
||||
defer ticker.Stop()
|
||||
|
||||
// Create a client channel and add it to the SSE server
|
||||
client := make(chan string)
|
||||
lib.SSEServer.AddClient(channel, client)
|
||||
|
Reference in New Issue
Block a user