fn on_message(
    filepath: String,
    context: &mut Context,
    message: Message
) -> Status
Expand 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 a Context struct.
  • message - A WebSocketMessage enum.

§Returns

A Status enum.