I am trying to broadcast the message to channel in redis, but every user have they'r own channel with their user_id.
the way i think can be use is get all active channel and then publish it one by one. because what i know redis can't publish if diferent channel.
but the problem is, in lib go-redis
i am using when the user subribe and check the redis with command PUBSUB CAHNNELS
there is no channel result. i read on documentation the subribe function not gonna actived thhe channel immidietly. so how can i get the subribe channel ?
is there any solution to solve this ?
i am using golang-redis
https://godoc.org/github.com/go-redis/redis