sendMessage

open suspend override fun sendMessage(message: FeatureMessage)(source)

Sends a feature message for further processing or delivery to connected clients via server-sent events (SSE).

This method is designed to enqueue the given FeatureMessage into a channel, from which it will be serialized and sent to all subscribed clients or receivers, if applicable. The method ensures that the message conforms to the expected FeatureMessage interface.

Parameters

message

The message to be sent, implementing the FeatureMessage interface. This message includes information such as a timestamp and type, ensuring proper context for the recipient.