fun <R> setOnReceiveCallback(action: (AnimationData) -> R): AnimationSender
Specify an action to perform when data is received from the server
R - The return type of your function
R
action - A function to run
action
Return this