diff --git a/app/utils/pusher.coffee b/app/utils/pusher.coffee index a9ae43dc..9e14a054 100644 --- a/app/utils/pusher.coffee +++ b/app/utils/pusher.coffee @@ -89,12 +89,15 @@ if ENV.pro names = Object.keys(channels.channels) channels.callbacks.push (auths) -> - _callback(false, auth: auths[name]) + auth = auths[name] + auth = auth.replace(/^key:/, config.key) + _callback(false, auth: auth) unless channels.fetching channels.fetching = true Ajax.post Pusher.channel_auth_endpoint, { socket_id: socketId, channels: names }, (data) -> channels.fetching = false + debugger callback(data.channels) for callback in channels.callbacks diff --git a/bower.json b/bower.json index ca6fd06e..c45afa30 100644 --- a/bower.json +++ b/bower.json @@ -17,7 +17,7 @@ "JavaScript-MD5": "~1.1.0", "moment": "~2.9.0", "jquery-timeago": "~1.4.1", - "pusher": "~2.2.3", + "pusher": "~2.2.4", "pretender": "0.1.0" } }