send


Description:

public async void send (SessionBase session, Message user_message, Cancellable? cancellable = null) throws Error

Sends a message to a session.

This is the new entry point for UI to send messages. UI creates Message objects and calls this method, which routes to session.send().

Parameters:

session

The session to send the message to

user_message

The message object to send

cancellable

Optional cancellable for canceling the request

Exceptions:

Error

if send fails