Copy link to clipboard
Copied
Hi all,
I'm trying to connect existing server on localhost with LrSocket.
I mean Lightroom connects to the server.
Initiation is from Lightroom.
As I tried with some code, it seems LrSocket works only started with listening.
Is that correct?
I've read through, other thread.
Working with LRSocket, receiving
Following is modified test code from API doc.
test code |
---|
local LrSocket = import "LrSocket" LrFunctionContext.callWithContext( 'socket_remote', function( context ) local running = true functionContext = context, -- TODO -- TODO -- nothing, we don't expect to get any messages back from a send port running = false if err == "timeout" then end sender:send( "Hello world" ) while running do end ) end ) |
Have something to add?