From a389f157baddafa91347c27194805580b1373e30 Mon Sep 17 00:00:00 2001 From: Federico Marani Date: Sat, 7 Mar 2009 13:48:39 +0000 Subject: tests with Apache ActiveMQ topics (pubsub) --- lib/util.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib/util.php') 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 { -- cgit v1.2.3-54-g00ecf