Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch '0.8.x' into persistent-sockets

  • Loading branch information...
commit 91025b819ab32e9a819cffe756084f50d85b73e0 2 parents 076612e + 44206b4
@jcoglan jcoglan authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  javascript/protocol/client.js
  2. +1 −1  lib/faye/protocol/client.rb
View
2  javascript/protocol/client.js
@@ -356,7 +356,7 @@ Faye.Client = Faye.Class({
},
_deliverMessage: function(message) {
- if (!message.channel || !message.data) return;
+ if (!message.channel || message.data === undefined) return;
this.info('Client ? calling listeners for ? with ?', this._clientId, message.channel, message.data);
this._channels.distributeMessage(message);
},
View
2  lib/faye/protocol/client.rb
@@ -352,7 +352,7 @@ def handle_advice(advice)
end
def deliver_message(message)
- return unless message['channel'] and message['data']
+ return unless message.has_key?('channel') and message.has_key?('data')
info('Client ? calling listeners for ? with ?', @client_id, message['channel'], message['data'])
@channels.distribute_message(message)
end
Please sign in to comment.
Something went wrong with that request. Please try again.