Created
June 14, 2016 13:29
-
-
Save vamsipavanmahesh/f92896b6fc40b9c8a6c66f25f3578822 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pusher' | |
class CheckPushController < ApplicationController | |
def show | |
pusher_client = Pusher::Client.new( | |
app_id: 'xxx', | |
key: 'xxx', | |
secret: 'xxx' | |
); | |
pusher_client.trigger('test_channel', 'my_event', {:message => 'hello world'}) | |
end | |
def another | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment