Skip to content

send(_😃 ​

This send the provided Data over the Wire

swift
func send(_ data: Data) async throws -> Int

Return Value ​

Number of bytes successfully send.

Parameters ​

  • data: The data object to be send

Discussion ​

It is possible that not all data is send. The Transport is responsible to retry sending the rest.