send

abstract suspend fun send(message: FeatureMessage)(source)

Sends a feature-related message to the remote feature messaging service.

The method facilitates communication by delivering a FeatureMessage instance containing the relevant data and metadata, such as the timestamp and type. It should only be invoked when the client is in a connected state to ensure successful delivery. Failure to send the message, due to connectivity issues or other errors, will result in an exception being thrown.

Parameters

message

The FeatureMessage instance that encapsulates the details of the message to be sent, including its timestamp and type.