Commit 981153dc authored by chenchuanwen's avatar chenchuanwen

pc

parent 2f520aea
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
$redis = new Redis(); $redis = new Redis();
$redis->connect('192.168.1.201', 6379); $redis->connect('192.168.1.201', 6379);
$message='happy New Year'; $message='happy New Year';
$ret=$redis->publish('pushcenter',$message); $ret=$redis->publish('redisPublish',$message);
...@@ -24,5 +24,6 @@ function printTest($meg){ ...@@ -24,5 +24,6 @@ function printTest($meg){
echo $meg.'213'; echo $meg.'213';
} }
function callback($instance,$channelName,$message){ function callback($instance,$channelName,$message){
printTest($message); $instance->unsubscribe(array($channelName));
//printTest($message);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment