Hello,
I’m connecting to a socket server, and am trying to inspect responses. I am already able to send messages:
connectObject.socket = require( "socket" )
connectObject.client = connectObject.socket.tcp()
connectObject.isClient = connectObject.client:connect( "192.168.1.73" , 1027 )
connectObject.client:send( '<h>hey</h>\0') )
This is working fine. But, coming from AS3, with its listener paradigm, I’m totally confused as to how to receive messages back from the server. I try the “receive” method on the client object, but then corona just hangs. How can I create a function that will accept incoming strings from the socket?
Thanks,
Mike [import]uid: 4454 topic_id: 2877 reply_id: 302877[/import]
