Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vamsipavanmahesh/f92896b6fc40b9c8a6c66f25f3578822 to your computer and use it in GitHub Desktop.
Save vamsipavanmahesh/f92896b6fc40b9c8a6c66f25f3578822 to your computer and use it in GitHub Desktop.
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