[Groonga-commit] groonga/express-kotoumi [master] Ignore undefined extra commands

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Jan 21 17:43:44 JST 2013


YUKI Hiroshi	2013-01-21 17:43:44 +0900 (Mon, 21 Jan 2013)

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

  Log:
    Ignore undefined extra commands

  Modified files:
    lib/socket-adaptor.js

  Modified: lib/socket-adaptor.js (+1 -1)
===================================================================
--- lib/socket-adaptor.js    2013-01-21 17:43:06 +0900 (6fd9e20)
+++ lib/socket-adaptor.js    2013-01-21 17:43:44 +0900 (ddbb90f)
@@ -54,7 +54,7 @@ exports.registerHandlers = function(application, server, params) {
 
   var io = socketIo.listen(server);
   io.sockets.on('connection', function(socket) {
-    commands.concat(params.extraCommands)
+    commands.concat(params.extraCommands || [])
       .forEach(function(command) {
         socket.on(command, createRequestHandler(command, socket));
         connection.on('message', createResultHandler(command, socket));
-------------- next part --------------
HTML����������������������������...
Download 



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