Merge pull request #246 from rom1504/fix_protocol_version_in_ping

fix ping.js protocol version
This commit is contained in:
Robin Lambertz 2015-09-23 21:30:24 +02:00
commit 7e7d5da2ba

View file

@ -1,7 +1,7 @@
var net = require('net')
, Client = require('./client')
, states = require('./transforms/serializer').states
;
, states = require('./transforms/serializer').states;
var version = require('./version');
module.exports = ping;
@ -32,7 +32,7 @@ function ping(options, cb) {
client.on('connect', function() {
client.write('set_protocol', {
protocolVersion: 4,
protocolVersion: version.version,
serverHost: host,
serverPort: port,
nextState: 1