[Groonga-commit] droonga/express-droonga at 9b01f9a [master] Don't use deprecated API on Socket.io 1.0

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu May 29 15:11:35 JST 2014


YUKI Hiroshi	2014-05-29 15:11:35 +0900 (Thu, 29 May 2014)

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

  Message:
    Don't use deprecated API on Socket.io 1.0

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

  Modified: lib/adapter/socket.io.js (+2 -2)
===================================================================
--- lib/adapter/socket.io.js    2014-05-28 12:56:22 +0900 (d151631)
+++ lib/adapter/socket.io.js    2014-05-29 15:11:35 +0900 (74fba6f)
@@ -165,7 +165,7 @@ exports.register = function(application, server, params) {
   var sessionStore = params.sessionStore;
   if (sessionStore) {
     var parseCookie = connect.utils.parseCookie;
-    io.configure(function() {
+    //io.configure(function() {
       io.set('authorization', function(handshakeData, callback) {
         if (handshakeData.headers.cookie) {
           var cookie = handshakeData.headers.cookie;
@@ -183,7 +183,7 @@ exports.register = function(application, server, params) {
           return callback(new Error('no cookie'), false);
         }
       });
-    });
+    //});
   }
 
   io.sockets.on('connection', function(socket) {
-------------- next part --------------
HTML����������������������������...
Download 



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