Start implementing the chat widget for the dashboard

This commit is contained in:
Dmitrii Okunev
2025-06-15 00:06:04 +01:00
parent 6d6a1b4b26
commit 20072c81c0
22 changed files with 1182 additions and 642 deletions

View File

@@ -10,6 +10,7 @@ import (
"net/http"
_ "net/http/pprof"
"os"
"time"
"github.com/davecgh/go-spew/spew"
"github.com/facebookincubator/go-belt/tool/logger"
@@ -318,7 +319,7 @@ func chatListen(cmd *cobra.Command, args []string) {
assertNoError(ctx, err)
fmt.Println("subscribing...")
ch, err := streamD.SubscribeToChatMessages(ctx)
ch, err := streamD.SubscribeToChatMessages(ctx, time.Now().Add(-time.Minute))
assertNoError(ctx, err)
fmt.Println("started listening...")