Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

update pomelo #564

Merged
merged 1 commit into from
Jul 17, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/connectors/commands/handshake.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Command.prototype.handle = function(socket, msg) {
if(!msg.sys.protoVersion || msg.sys.protoVersion < protoVersion){
opts.protos = pomelo.app.components.__protobuf__.getProtos();
}
opts.useProto = true;
}

if(!!pomelo.app.components.__decodeIO__protobuf__) {
Expand All @@ -62,6 +63,7 @@ Command.prototype.handle = function(socket, msg) {
if(!msg.sys.protoVersion || msg.sys.protoVersion < version) {
opts.protos = pomelo.app.components.__decodeIO__protobuf__.getProtos();
}
opts.useProto = true;
}

if(this.useCrypto) {
Expand Down