我正在尝试向我的ES编写测试事件。这是我的代码。
var EventStoreClient = require('event-store-client');
var options = {
host: '<url>',
port: 1113,
debug: true,
onConnect: () => console.log('connected'),
onError: err => console.log('error', err),
onClose: errored => console.log('errored', errored)
};
var connection = new EventStoreClient.Connection(options);
connection.sendPing(pkg => {
console.log('Received ' + command + ' response!');
});
这是我运行代码时得到的结果
Outbound: 120000000300bea64df202f946068dfdacddfba41fc9 (22 bytes) Ping
connected
errored false
所以我从来没有打过ping回调的内部。我可以看些什么?我还可以做什么以获取更多错误信息?