feat: stream room updates SSE endpoint

via subscription to redis with enriched channel
This commit is contained in:
efim
2023-11-12 18:01:42 +00:00
parent 34d610a8c8
commit b90fcc3f20
6 changed files with 163 additions and 88 deletions

View File

@@ -29,11 +29,10 @@ func main() {
DB: 0,
})
fmt.Printf("Server will start on port %d\n", port)
roomsM := rooms.RedisRM { Rdb: rdb, }
sessions := sessions.RedisSM{ Rdb: rdb, }
log.Printf("Server will start on port %d\n", port)
routes.RegisterRoutes(sessions, roomsM)
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", port), nil))