pub async fn start_ws_com(
    filepath: String,
    relay: &str,
    name: &str
) -> Result<()>
Expand description

Asynchronously starts a WebSocket communication with a relay server.

§Arguments

  • filepath - The path of the file to transfer.
  • relay - The URL of the relay server.
  • name - The name of the receiver.

§Returns

Returns a Result indicating the success or failure of the WebSocket communication.