animatedledstrip-client / animatedledstrip.client / AnimationSenderFactory / AnimationSender / setOnDisconnectCallback

setOnDisconnectCallback

fun setOnDisconnectCallback(action: () -> Unit): AnimationSender

Specify an action to perform when a connection is lost

Parameters

action - A function to run

Return
this