feat: stream room updates SSE endpoint
via subscription to redis with enriched channel
This commit is contained in:
3
main.go
3
main.go
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user