aboutsummaryrefslogtreecommitdiffstats
path: root/docs/Formula-Cookbook.md
diff options
context:
space:
mode:
authorMike McQuaid2018-01-23 19:50:20 +0000
committerGitHub2018-01-23 19:50:20 +0000
commitea0af7d1af3a6b44338656739a76cf5b86f2e00f (patch)
tree4a652601a3d0981949dee2825d78105224706d66 /docs/Formula-Cookbook.md
parente056e85078c5a8e79d187508cf391b9cd47ab2cf (diff)
parent2844b0748da7d18fa9dca30a5ebbb00617493b66 (diff)
downloadbrew-ea0af7d1af3a6b44338656739a76cf5b86f2e00f.tar.bz2
Merge pull request #3724 from ilovezfs/call-satisfied-at-least-once
build: call satisified? before modifying env.
Diffstat (limited to 'docs/Formula-Cookbook.md')
0 files changed, 0 insertions, 0 deletions
="n">sys.argv) > 1 and sys.argv[1] or 'demo' subscribe_key = len(sys.argv) > 2 and sys.argv[2] or 'demo' secret_key = len(sys.argv) > 3 and sys.argv[3] or 'demo' cipher_key = len(sys.argv) > 4 and sys.argv[4] or '' ssl_on = len(sys.argv) > 5 and bool(sys.argv[5]) or False ## ----------------------------------------------------------------------- ## Initiate Pubnub State ## ----------------------------------------------------------------------- pubnub = Pubnub(publish_key=publish_key, subscribe_key=subscribe_key, secret_key=secret_key, cipher_key=cipher_key, ssl_on=ssl_on) channel = 'a' # Asynchronous usage def callback(message, channel): print(message) def error(message): print("ERROR : " + str(message)) def connect(message): print("CONNECTED") def reconnect(message): print("RECONNECTED") def disconnect(message): print("DISCONNECTED") pubnub.subscribe(channel, callback=callback, error=callback, connect=connect, reconnect=reconnect, disconnect=disconnect)