[ Version ( since = "1.16" ) ]
public void set_send_messages_func (owned ClientSendMessagesFunc func)
Set func
as the callback that will be called when new messages needs to be sent to the client.
user_data
is passed to func
and notify
is called when user_data
is no longer in use.
By default, the client will send the messages on the Connection that was configured with attach was called.
It is only allowed to set either a `send_func` or a `send_messages_func` but not both at the same time.
this |
a Client |
func | |
notify |
called when |
user_data |
user data passed to |