Open Socket With Messages
Bob Sneidar
bobsneidar at iotecdigital.com
Mon Jul 6 15:36:02 EDT 2015
Hi all.
I am trying to use open socket like this:
put aConnection["dbhost"] & ":" & aConnection["dbport"] into theSocket
open secure socket to theSocket with message socketConnected
wait for messages
put the openSockets into theOpenSockets
close socket theSocket
I have this handler in the same script:
on socketConnected
-- callBack for open socket commands
put "connected!"
end socketConnected
The problem is, socketConnected never gets called. The connection works because theOpenSockets contains the connection as it should, but I never get the callback. What am I missing?
Bob S
More information about the use-livecode
mailing list