Contents

send(_:lastMessage:metadata:other:)

Send data on a connection.

Declaration

func send<T>(_ content: Data, lastMessage: Bool = false, metadata: NWProtocolFramer.Message? = nil, @ProtocolMetadataBuilder other builder: () -> [NWProtocolMetadata] = {[]}) async throws where ApplicationProtocol == Framer<T>, T : FramerProtocol

Parameters

  • content:

    The data to send.

  • lastMessage:

    The last message to send.

  • metadata:

    The metadata about the data being sent.

  • builder:

    A builder for specifying metadata about the content to send.