Skip to content

Commit

Permalink
allow user info on a presence channe;
Browse files Browse the repository at this point in the history
  • Loading branch information
idyll committed Feb 24, 2012
1 parent 3d38c8b commit c0e1bbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pusher-client/socket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def disconnect
end
end

def subscribe(channel_name, user_id = nil)
@user_data = {:user_id => user_id}.to_json unless user_id.nil?
def subscribe(channel_name, user_id = nil, options={})
@user_data = {:user_id => user_id, :user_info => options}.to_json unless user_id.nil?

channel = @channels << channel_name
if @connected
Expand Down

0 comments on commit c0e1bbb

Please sign in to comment.