[Groonga-commit] groonga/express-kotoumi [master] Export "connection" and "emitMessage()" on the application

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Mon Feb 4 11:56:03 JST 2013


YUKI Hiroshi	2013-02-04 11:56:03 +0900 (Mon, 04 Feb 2013)

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

  Log:
    Export "connection" and "emitMessage()" on the application

  Modified files:
    index.js

  Modified: index.js (+5 -0)
===================================================================
--- index.js    2013-02-04 11:55:05 +0900 (adeacdc)
+++ index.js    2013-02-04 11:56:03 +0900 (cc1934b)
@@ -18,4 +18,9 @@ express.application.kotoumi = function(params) {
     socketIoHandler.register(this, params.server, params);
 
   dashboardHandler.register(this, params);
+
+  var connection = params.connection;
+
+  this.connection = connection;
+  this.emitMessage = connection.emitMessage.bind(connection); // shorthand
 }
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る