YUKI Hiroshi
null+****@clear*****
Tue Sep 10 17:31:45 JST 2013
YUKI Hiroshi 2013-09-10 17:31:45 +0900 (Tue, 10 Sep 2013) New Revision: e9bc6f602d28b66f1b0b5823517f2041add61cc3 https://github.com/droonga/express-droonga/commit/e9bc6f602d28b66f1b0b5823517f2041add61cc3 Message: Accept "dataset" parameter for the droonga protocol connection Modified files: lib/droonga-protocol/connection.js Modified: lib/droonga-protocol/connection.js (+3 -0) =================================================================== --- lib/droonga-protocol/connection.js 2013-09-10 17:30:52 +0900 (0da8581) +++ lib/droonga-protocol/connection.js 2013-09-10 17:31:45 +0900 (cf672dc) @@ -1,5 +1,6 @@ /** * var connection = new Connection({ tag: 'droonga', + * dataset: 'example', * hostName: 'localhost', * port: 24224, * receiveHostName: 'localhost', @@ -45,6 +46,7 @@ Connection.prototype._init = function() { this._callbacks = {}; this._id = Date.now(); this.tag = this._params.tag || DEFAULT_FLUENT_TAG; + this.dataset = this._params.dataset || ''; this._initSender(); this._initReceiver(); }; @@ -130,6 +132,7 @@ Connection.prototype.emitMessage = function(type, body, callback, options) { date: getCurrentTime(), replyTo: replyTo, statusCode: 200, + dataset: this.dataset, type: type, body: body }; -------------- next part -------------- HTML����������������������������...Download