Phase 4.0: WebSocket chat and danmaku system implemented

This commit is contained in:
2026-03-18 15:30:03 +08:00
parent d05ec7ccdf
commit 9c7261cbda
11 changed files with 507 additions and 44 deletions

View File

@@ -4,16 +4,20 @@ import (
"log"
"hightube/internal/api"
"hightube/internal/chat"
"hightube/internal/db"
"hightube/internal/stream"
)
func main() {
log.Println("Starting Hightube Server Version-1.0.2 ...")
log.Println("Starting Hightube Server (Phase 4)...")
// Initialize Database and run auto-migrations
db.InitDB()
// Initialize Chat WebSocket Hub
chat.InitChat()
// Start the API server in a goroutine so it doesn't block the RTMP server
go func() {
r := api.SetupRouter()