Method Remote.Connection()->add_close_callback() Method add_close_callback void add_close_callback(function(:void) f, mixed ... args) Description Add a function that is called when the connection is closed.