Sha256: 321a54da01cab02dc94a3228423862b6951424a2dea65df564feed5291e0bc1f
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
# Usage: $ EVENTFLIT_KEY=YOURKEY ruby examples/hello_eventflit_ssl.rb $:.unshift(File.expand_path("../../lib", __FILE__)) require 'eventflit-client' require 'pp' APP_KEY = ENV['EVENTFLIT_KEY'] # || "YOUR_APPLICATION_KEY" socket = EventflitClient::Socket.new(APP_KEY, { :encrypted => true } ) # Subscribe to a channel socket.subscribe('helloeventflit') # Bind to a channel event socket['helloeventflit'].bind('hello') do |data| pp data end socket.connect
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eventflit-client-0.1.0 | examples/hello_eventflit_ssl.rb |