Permalink
Browse files

Merge branch '0.8.x' into persistent-sockets

  • Loading branch information...
2 parents 076612e + 44206b4 commit 91025b819ab32e9a819cffe756084f50d85b73e0 @jcoglan jcoglan committed Jan 15, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 javascript/protocol/client.js
  2. +1 −1 lib/faye/protocol/client.rb
@@ -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);
},
@@ -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

0 comments on commit 91025b8

Please sign in to comment.