Sha256: 1cf559ee8182e9fd8e59befe4086af33b15951ab2522c50a2457bc284659861f
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
$LOAD_PATH << '../' require 'yalgaar' ########################################################Callbacks######################################### #Callback for Connection $connectionCallback = -> (arg0) { connectionCallback(arg0) } def connectionCallback(arg0) puts arg0 end $errorMsgCallback = -> (arg0) { errorMsgCallback(arg0) } def errorMsgCallback(message) puts "errorMsgCallback" puts message #TODO end $historyMessageCallback = -> (arg0) { historyMessageCallback(arg0) } def historyMessageCallback(message) #No a presence must me json & enable puts "HistoryMessageCallback" puts message #TODO end ########################################################User Area for Calling Pub-sub###################################### yalgaarClient = Yalgaar.new #yalgaarConnect(clientKey,isSecure,$connectionCallback)# yalgaarClient.yalgaarConnect("ck-47046d75cf64402f",1,$connectionCallback) sleep 2 #yalgaarHistory(Channel,MessageCount,$HistoryMessageCallback,$errorMsgCallback)# yalgaarClient.yalgaarHistory("123","100",$HistoryMessageCallback,$errorMsgCallback) ########################################################END####################################################################
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yalgaar-1.0.2 | examples/history.rb |
yalgaar-1.0.1 | examples/history.rb |