Sha256: 83d64b54520cf0e1343b2046237a04b300cad0b44d8b7bd52e40f25ebe56f802

Contents?: true

Size: 1.44 KB

Versions: 1

Compression:

Stored size: 1.44 KB

Contents

$LOAD_PATH << '../'
require 'yalgaar'

########################################################Callbacks#########################################	
#Callback for Connection

$connectionCallback = -> (arg0) { connectionCallback(arg0) } 
def connectionCallback(arg0)
	puts arg0
end

########################################################User Area for Calling Pub-sub######################################			
yalgaarClient = Yalgaar.new

#yalgaarConnect(clientKey,isSecure,$connectionCallback)#
yalgaarClient.yalgaarConnect("ck-47046d75cf64402f",0,$connectionCallback)
sleep 2
yalgaarClient.yalgaarDisconnect($connectionCallback)
sleep 2
#~ 
#yalgaarConnect(clientKey,isSecure,UUID,$connectionCallback)#
yalgaarClient.yalgaarConnect("ck-47046d75cf64402f",1,"123",$connectionCallback)
sleep 2
yalgaarClient.yalgaarDisconnect($connectionCallback)
sleep 2

#yalgaarConnect(clientKey,isSecure,AESSecretKey,AESType,$connectionCallback)#
yalgaarClient.yalgaarConnect("ck-47046d75cf64402f",1,"SystemSystemSLSS",128,$connectionCallback)
sleep 2
yalgaarClient.yalgaarDisconnect($connectionCallback)
sleep 2

#yalgaarConnect(clientKey,isSecure,UUID,AESSecretKey,AESType,$connectionCallback)#
yalgaarClient.yalgaarConnect("ck-47046d75cf64402f",1,"123","SystemSystemSLSS",128,$connectionCallback)
sleep 2
yalgaarClient.yalgaarDisconnect($connectionCallback)
########################################################END####################################################################

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yalgaar-1.0.2 examples/connect.rb