localEndpoint
TypeScriptget localEndpoint(): (NWEndpoint) | nullSwift declarationvar localEndpoint: NWEndpoint? { get }Access the local endpoint to which this message was sent. `localEndpoint` will be `nil` for messages that you send.
class · iOS 14.0+ · SDK 27.1
class MessageA connection group message allows a caller to set or retrieve metadata about data being sent between endpoints. All properties of an `NWConnection.ContentContext` are inherited, such as priority, protocol metadata, and expiration. Beyond this, group messages carry data about the local and remote endpoints and the network path.
get localEndpoint(): (NWEndpoint) | nullSwift declarationvar localEndpoint: NWEndpoint? { get }Access the local endpoint to which this message was sent. `localEndpoint` will be `nil` for messages that you send.
get remoteEndpoint(): (NWEndpoint) | nullSwift declarationvar remoteEndpoint: NWEndpoint? { get }Access the remote endpoint that sent this message. `remoteEndpoint` will be `nil` for messages that you send.
extractConnection(): (NWConnection) | nullSwift declarationfunc extractConnection() -> NWConnection?Extract an `NWConnection` corresponding to this received message that can be used to read the remainder of a partial message or to send a large response, with support for partial messages and backpressure, to the endpoint that sent this message. Once extracted, subsequent messages from this remote endpoint on this connection will no longer be handled by the connection group.
static init(nw: Implements<OS_nw_content_context> | SDKHandle): NWConnectionGroup_MessageSwift declarationinit(nw: nw_content_context_t)get path(): (NWPath) | nullSwift declarationvar path: NWPath? { get }Access the path over which this message was received. `path` will be `nil` for messages that you send.
reply(content?: (ArrayBuffer) | null, message?: NWConnectionGroup_Message): voidSwift declarationfunc reply(content: Data?, message: NWConnectionGroup.Message = .default)Send a reply to this message with an outgoing message object.
static get default(): NWConnectionGroup_MessageSwift declarationstatic let `default`: NWConnectionGroup.MessageUse the default message to send content with all default properties: default priority and no expiration. This message does not have any associated local endpoint, remote endpoint, or path.
metadata(definition: NWProtocolDefinition): (NWProtocolMetadata) | nullSwift declarationfunc metadata(definition: NWProtocolDefinition) -> NWProtocolMetadata?1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NWConnectionGroup.Message.init(identifier:expiration:priority:isFinal:antecedent:metadata:)
The iOS SDK compiler rejected this binding: 'super' cannot be used in non-class type 'OneSDK_Network'