[Groonga-commit] droonga/express-droonga at 3652dd5 [master] Return the new socket to the next callback correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Jan 6 12:11:23 JST 2014


YUKI Hiroshi	2014-01-06 12:11:23 +0900 (Mon, 06 Jan 2014)

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

  Message:
    Return the new socket to the next callback correctly

  Modified files:
    lib/adapter/socket.io.js
    test/test-utils.js

  Modified: lib/adapter/socket.io.js (+0 -1)
===================================================================
--- lib/adapter/socket.io.js    2014-01-06 12:08:58 +0900 (2ce684a)
+++ lib/adapter/socket.io.js    2014-01-06 12:11:23 +0900 (bbda90d)
@@ -239,7 +239,6 @@ exports.register = function(application, server, params) {
     });
 
     socket.emit('connected', {
-      socket:       socket,
       route:        connection.getRouteToSelf({ sessionId: socket.id }),
       subscriberId: subscriberId
     });

  Modified: test/test-utils.js (+2 -0)
===================================================================
--- test/test-utils.js    2014-01-06 12:08:58 +0900 (81103ed)
+++ test/test-utils.js    2014-01-06 12:11:23 +0900 (2bb7843)
@@ -135,10 +135,12 @@ function createClientSocket() {
   var host = 'http://localhost:' + testServerPort;
   var options = { 'force new connection': true };
   var socket = client.connect(host, options);
+  var newClientSocket;
 //  socket.on('connect', function() {
 //    deferred.call(socket);
 //  });
   socket.on('connected', function(client) {
+    client.socket = socket;
     deferred.call(client);
   });
   return deferred;
-------------- next part --------------
HTML����������������������������...
Download 



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