sendMessage abstract method
Sends a message through the WebSocket connection.
Encodes and sends the message through the WebSocket connection.
Returns a Result indicating success or failure of the send operation.
Implementation
Result<void> sendMessage(Outgoing message);