Skip to content

Instantly share code, notes, and snippets.

@pcon
Last active November 8, 2019 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcon/94929bdde5cf7ff22e553793b7cb66d7 to your computer and use it in GitHub Desktop.
Save pcon/94929bdde5cf7ff22e553793b7cb66d7 to your computer and use it in GitHub Desktop.
require 'restforce'
require 'faye'
Restforce.log = true
Restforce.configure do |config|
config.logger = Logger.new("/tmp/restforce.log")
config.log_leve = :info
end
client = Restforce.new
client.authenticate!
EM.run do
client.subscription '/event/LoginEventStream' do |message|
puts message.inspect
end
end
@pcon
Copy link
Author

pcon commented Nov 8, 2019

@samjglover I'm not interested in using any project as I'm targeting adding this to the Open-source project Fluentd. If you have anyone that knows why this isn't working I'd be more than happy to talk with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment