我正在尝试使用px
ping ES。这是我的代码
event-store-client
这是登录我的控制台的内容:
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: closing => console.log('error on closing', closing)
}
var connection = new EventStoreClient.Connection(options);
connection.sendPing(value => {
console.log('here' + JSON.stringify(value))
connection.close()
})
我没有点击Outbound: 120000000300d7ce220b06ab4a17a180d1b0d0c8a23d (22 bytes) Ping
connected
error on closing false
回调,但是我也没有遇到错误。我可以检查什么?如何获得更多日志记录?做错了什么?