Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 167f74900f1bcf0b8c8521ec980e699c5b12b07d 1 parent 311aa81
Daniel Waterworth DanielWaterworth authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pusher/channel.rb
4 lib/pusher/channel.rb
View
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.