add_handler
Description:
Adds a new handler that will be dispatched when a matching method arrives.
Parameters:
| this |
A Server |
| method |
A method to handle |
| handler |
A handler to execute when an incoming method matches |
| handler_data |
User data for |
| handler_data_destroy |
A destroy callback for |
Returns:
|
A handler id that can be used to remove the handler with [method@Server.remove_handler]. |