Permalink
Browse files

Use a string as the channel name rather than an array inside Channel.

  • Loading branch information...
1 parent 311aa81 commit 167f74900f1bcf0b8c8521ec980e699c5b12b07d @danielwaterworth danielwaterworth committed Nov 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pusher/channel.rb
View
4 lib/pusher/channel.rb
@@ -30,7 +30,7 @@ def initialize(base_url, name, client = Pusher)
def trigger_async(event_name, data, socket_id = nil)
params = {}
params[:socket_id] = socket_id if socket_id
- @client.trigger_async([name], event_name, data, params)
+ @client.trigger_async(name, event_name, data, params)
end
# Trigger event
@@ -56,7 +56,7 @@ def trigger_async(event_name, data, socket_id = nil)
def trigger!(event_name, data, socket_id = nil)
params = {}
params[:socket_id] = socket_id if socket_id
- @client.trigger([name], event_name, data, params)
+ @client.trigger(name, event_name, data, params)
end
# Trigger event, catching and logging any errors.

0 comments on commit 167f749

Please sign in to comment.