YUKI Hiroshi
null+****@clear*****
Mon Jan 28 13:30:28 JST 2013
YUKI Hiroshi 2013-01-28 13:30:28 +0900 (Mon, 28 Jan 2013) New Revision: 0e0e944ee087057b29c065dbd68df3e741d35f6c https://github.com/groonga/express-kotoumi/commit/0e0e944ee087057b29c065dbd68df3e741d35f6c Log: Delete obsolete comment for usage of Connection Modified files: lib/backend/connection.js Modified: lib/backend/connection.js (+0 -22) =================================================================== --- lib/backend/connection.js 2013-01-28 13:27:23 +0900 (2380c46) +++ lib/backend/connection.js 2013-01-28 13:30:28 +0900 (2fe8bea) @@ -4,28 +4,6 @@ * port: 24224, * receiveHostName: 'localhost', * receivePort: 10030 }); - * or - * var server = require('http').createServer(handler); - * server.listen(10030); - * var connection = new Connection({ tag: 'kotoumi', - * hostName: 'localhost', - * port: 24224, - * receiveHostName: 'localhost', - * receiveServer: server }); - * - * // for REST APIs - * connection.emitMessage( - * { command: 'search', - * query: 'foobar' }, - * function callback(result) { - * // codes to handle results from the backend - * } - * ); - * - * // for socket.io APIs - * connection.on('notification', function listener(messageBody) { ... }); - * // volatile message - * connection.emitMessage({ command: 'reindex' }); */ var EventEmitter = require('events').EventEmitter; -------------- next part -------------- HTML����������������������������...Descargar