Permalink
Browse files

if channel.pusher.connection, fetch the socket id from connection

  • Loading branch information...
codezomb authored and miksago committed Oct 24, 2011
1 parent 6e40a4f commit 9caa3ecce01916d8bcb8da1d5997912ec3c60bf9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/backpusher.js
View
@@ -16,7 +16,7 @@
// we can setup the socket_id param.
if (channel.pusher.connection) {
channel.pusher.connection.bind('connected', function() {
- Backbone.pusher_socket_id = channel.pusher.socket_id;
+ Backbone.pusher_socket_id = channel.pusher.connection.socket_id;
});
} else {
channel.pusher.bind('pusher:connection_established', function() {

0 comments on commit 9caa3ec

Please sign in to comment.