YUKI Hiroshi
null+****@clear*****
Mon Jan 20 16:02:27 JST 2014
YUKI Hiroshi 2014-01-20 16:02:27 +0900 (Mon, 20 Jan 2014) New Revision: b8cf77d5b8c4fab53d9c0696464ab93c44734199 https://github.com/droonga/express-droonga/commit/b8cf77d5b8c4fab53d9c0696464ab93c44734199 Message: Add sample HTTP streaming command type Modified files: lib/adapter/api/droonga.js Modified: lib/adapter/api/droonga.js (+16 -0) =================================================================== --- lib/adapter/api/droonga.js 2014-01-16 16:25:15 +0900 (711a74c) +++ lib/adapter/api/droonga.js 2014-01-20 16:02:27 +0900 (cb13d3d) @@ -18,5 +18,21 @@ module.exports = { connection.emit(messageType, body); }); } + }), + 'droonga-streaming:watch': new command.HTTPStreaming({ + dataset: 'Watch', + path: '/droonga-streaming/watch', + method: 'GET', + subscription: 'watch.subscribe', + unsubscription: 'watch.unsubscribe', + messageType: 'watch.publish', + createSubscription: function(request) { + return { + condition: request.query.condition + }; + }, + translate: function(message) { + return message; + } }) }; -------------- next part -------------- HTML����������������������������... Download