send


Description:

public override async void send (Message message, Cancellable? cancellable = null) throws Error

Sends a Message object to this session.

Converts EmptySession to a real Session when a message is sent. Creates a new Session, copies client properties, replaces this EmptySession in the manager, and then calls send() on the new Session.

Parameters:

message

The message object to send

cancellable

Optional cancellable for canceling the request

Exceptions:

Error

if the request fails