LocalSend::Client
Sends one or more files to a LocalSend device.
#send waits for the receiver to accept and for every upload to finish.
Run it in a fiber when the caller must stay responsive.
Constants
ACCEPT_TIMEOUT = 5.minutes
The receiver holds prepare-upload while someone decides.
Log = LocalSend::Log.for("client")
TRANSFER_TIMEOUT = 60.seconds
Constructors
Instance methods
Builds the prepare-upload payload without opening a connection.
send(device : Device, paths : Enumerable(Path), pin : String | Nil = nil, &report : Progress -> ) : Nil
Source