[Groonga-commit] droonga/express-droonga at ce16131 [master] Handle subscribe and unsubscribe commands correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Oct 16 14:50:57 JST 2013


YUKI Hiroshi	2013-10-16 14:50:57 +0900 (Wed, 16 Oct 2013)

  New Revision: ce16131e9a87cecce99e25d7ebbb82eb0dc9e799
  https://github.com/droonga/express-droonga/commit/ce16131e9a87cecce99e25d7ebbb82eb0dc9e799

  Message:
    Handle subscribe and unsubscribe commands correctly

  Modified files:
    lib/adapter/socket.io.js

  Modified: lib/adapter/socket.io.js (+2 -0)
===================================================================
--- lib/adapter/socket.io.js    2013-10-16 14:29:25 +0900 (182f5fe)
+++ lib/adapter/socket.io.js    2013-10-16 14:50:57 +0900 (4f03ae8)
@@ -163,6 +163,8 @@ exports.register = function(application, server, params) {
                   createClientMessageHandler(subscribeEvent, socket));
         socket.on(unsubscribeEvent,
                   createClientMessageHandler(unsubscribeEvent, socket));
+        unifiedCommandSet[subscribeEvent] = registeredCommand.definition;
+        unifiedCommandSet[unsubscribeEvent] = registeredCommand.definition;
 
         var notificationEvent = registeredCommand.name + '.notification';
         var notificationHandler = createNotificationHandler(notificationEvent, socket);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index