[Groonga-commit] groonga/express-kotoumi [master] Set session id of the related socket to an envelope

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Feb 6 19:06:20 JST 2013


YUKI Hiroshi	2013-02-06 19:06:20 +0900 (Wed, 06 Feb 2013)

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

  Log:
    Set session id of the related socket to an envelope

  Modified files:
    lib/backend/connection.js

  Modified: lib/backend/connection.js (+3 -0)
===================================================================
--- lib/backend/connection.js    2013-02-06 17:54:40 +0900 (bc53978)
+++ lib/backend/connection.js    2013-02-06 19:06:20 +0900 (7192615)
@@ -119,6 +119,9 @@ Connection.prototype.emitMessage = function(type, body, callback, options) {
     type:       type,
     body:       body
   };
+  if (options.socket) {
+    envelope.sessionId = options.socket.sessionid;
+  }
   if (callback) {
     var event = 'inReplyTo:' + id;
     this.once(event, callback);
-------------- next part --------------
HTML����������������������������...
Download 



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