Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 338 Bytes
# https://app.pusherapp.com/apps/42342/debug
# https://github.com/pusher/pusher-gem
# add PUSHER_URL to env
# LOGGING
Pusher.logger = Rails.logger
# PUBLISHING EVENTS
begin
Pusher.trigger('a_channel', 'an_event', { some: 'data' })
rescue Pusher::Error => e
# (Pusher::AuthenticationError, Pusher::HTTPError, or Pusher::Error)
end