Sha256: 784337ce0f6470420f56530d43954a991890658cb41391dad3bff0e2bc90f9cd
Contents?: true
Size: 429 Bytes
Versions: 4
Compression:
Stored size: 429 Bytes
Contents
# Usage: $ PUSHER_KEY=YOURKEY ruby examples/hello_pusher.rb require 'rubygems' require './lib/pusher-client.rb' require 'pp' APP_KEY = ENV['PUSHER_KEY'] # || "YOUR_APPLICATION_KEY" PusherClient.logger = Logger.new(STDOUT) socket = PusherClient::Socket.new(APP_KEY) # Subscribe to a channel socket.subscribe('hellopusher') # Bind to a channel event socket['hellopusher'].bind('hello') do |data| pp data end socket.connect
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
pusher-client-0.3.1 | examples/hello_pusher.rb |
pusher-client-0.3.0 | examples/hello_pusher.rb |
pusher-client-0.2.2 | examples/hello_pusher.rb |
pusher-client-merman-0.2.1 | examples/hello_pusher.rb |