[Groonga-commit] groonga/express-kotoumi [master] Handle messages with ".result" suffix correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Feb 6 17:42:23 JST 2013


YUKI Hiroshi	2013-02-06 17:42:23 +0900 (Wed, 06 Feb 2013)

  New Revision: c8204279a469809e990b26123f7606b5a5682e1a
  https://github.com/groonga/express-kotoumi/commit/c8204279a469809e990b26123f7606b5a5682e1a

  Log:
    Handle messages with ".result" suffix correctly

  Modified files:
    lib/frontend/socket.io-adaptor.js

  Modified: lib/frontend/socket.io-adaptor.js (+1 -1)
===================================================================
--- lib/frontend/socket.io-adaptor.js    2013-02-06 17:30:33 +0900 (b0785e0)
+++ lib/frontend/socket.io-adaptor.js    2013-02-06 17:42:23 +0900 (3568411)
@@ -42,7 +42,7 @@ exports.register = function(application, server, params) {
       var event = envelope.type;
 
       var data;
-      var resultTypeMatch = envelope.type.match(/^(.+)\.test$/);
+      var resultTypeMatch = envelope.type.match(/^(.+)\.result$/);
       if (resultTypeMatch && unifiedCommandSet[resultTypeMatch[1]]) {
         var command = unifiedCommandSet[resultTypeMatch[1]];
         if (command.responseBuilder)
-------------- next part --------------
HTML����������������������������...
Download 



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