From 1505124954f74f1da4400de0c480f69112efada4 Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Fri, 20 Jul 2012 10:23:45 -0400 Subject: [PATCH] [WAMP] Topic subscription bug fix --- CHANGELOG.md | 10 +++------- src/Ratchet/Wamp/TopicManager.php | 1 + 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfc9741..5d00ef8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,16 +8,12 @@ CHANGELOG --- -* wamp-topics (devel branch) - - * BC: Renamed "WampServer" to "ServerProtocol" - * BC: New "WampServer" component manages Topic containers of subscribed Connections - -* 0.2 (2012-TBD) +* 0.2 (2012-07-TBD) * Ratchet passes every non-binary-frame test from the Autobahn Testsuite * Major performance improvements - * Ratchet now relies on all stable dependancies + * BC: Renamed "WampServer" to "ServerProtocol" + * BC: New "WampServer" component passes Topic container objects of subscribed Connections * Option to turn off UTF-8 checks in order to increase performance * mbstring no longer required diff --git a/src/Ratchet/Wamp/TopicManager.php b/src/Ratchet/Wamp/TopicManager.php index b6916b5..bea1171 100644 --- a/src/Ratchet/Wamp/TopicManager.php +++ b/src/Ratchet/Wamp/TopicManager.php @@ -43,6 +43,7 @@ class TopicManager implements WsServerInterface, WampServerInterface { return; } + $this->topicLookup[$topic]->add($conn); $conn->WAMP->topics->attach($topicObj); $this->app->onSubscribe($conn, $topicObj); }