I have a socket configured with Ratchet to listen to messages in the client like this:
var sock = new WebSocket("ws://localhost:2000");
sock.onmessage = new function(evt){
//Listen to redis subscribe
}
sock.onopen ..
sock.onclose ..
I am trying to connect to a redis pubsub channel and listen to the messages. I know how to subscribe to a redis channel in php but I am trying to figure out how to configure Ratchet's onMessage to listen to redis' subscribe. Is it possible to modify Ratchet to listen to redis subscribe on a certain channel? Are there any documentation I could read up on? Could not find much information online. Any advice is appreciated.