Function caesar_core::receiver::client::on_message
source · fn on_message(
filepath: String,
context: &mut Context,
message: Message
) -> StatusExpand description
Handle a message received from the WebSocket connection.
This function takes a filepath string, a mutable reference to a Context struct,
and a WebSocketMessage enum. It returns a Status enum.
§Arguments
filepath- A string representing the file path.context- A mutable reference to aContextstruct.message- AWebSocketMessageenum.
§Returns
A Status enum.