diff options
author | Federico Marani <federico.marani@ymail.com> | 2009-03-07 13:48:39 +0000 |
---|---|---|
committer | Federico Marani <federico.marani@ymail.com> | 2009-03-07 13:48:39 +0000 |
commit | a389f157baddafa91347c27194805580b1373e30 (patch) | |
tree | 77481da4d6bd35c81991ac0d16fa89f41c3e110d | |
parent | 80d0423026b0bc14c8da820fff7905ba9c0a5d0e (diff) |
tests with Apache ActiveMQ topics (pubsub)
-rw-r--r-- | lib/util.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index 8ef19f579..8f1c419f2 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1159,6 +1159,20 @@ function common_enqueue_notice($notice) } common_log(LOG_DEBUG, 'complete remote queueing notice ID = ' . $notice->id . ' for ' . $transport); } + $con->send('/topic/laconica.'.$notice->profile_id, + $notice->content, + array( + 'profile_id' => $notice->profile_id, + 'created' => $notice->created + ) + ); + $con->send('/topic/laconica.allusers', + $notice->content, + array( + 'profile_id' => $notice->profile_id, + 'created' => $notice->created + ) + ); $result = true; } else { |