Remove keepalive

This commit is contained in:
2024-04-12 20:08:18 -06:00
parent 4f5afcda70
commit b5f3302a96
4 changed files with 6 additions and 25 deletions

View File

@ -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)