<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/TabletopNetworkSessionCoordinator",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "TabletopKit"
    ],
    "preciseIdentifier" : "s:11TabletopKit0A25NetworkSessionCoordinatorP"
  },
  "title" : "TabletopNetworkSessionCoordinator"
}
-->

# TabletopNetworkSessionCoordinator

A protocol for objects that manage network sessions between peers.

```
protocol TabletopNetworkSessionCoordinator
```

## Overview

Peers are networking participants that might or might not join a multiplayer game.

## Topics

### Starting network sessions

[`func coordinateWithSession(Self.NetworkSession)`](/documentation/TabletopKit/TabletopNetworkSessionCoordinator/coordinateWithSession(_:))

[`typealias NetworkSession`](/documentation/TabletopKit/TabletopNetworkSessionCoordinator/NetworkSession)

### Managing network session peers

[`func peerJoinedGame(Self.Peer.ID)`](/documentation/TabletopKit/TabletopNetworkSessionCoordinator/peerJoinedGame(_:))

[`func peerLeftGame(Self.Peer.ID)`](/documentation/TabletopKit/TabletopNetworkSessionCoordinator/peerLeftGame(_:))

[`associatedtype Peer : Hashable, Identifiable`](/documentation/TabletopKit/TabletopNetworkSessionCoordinator/Peer)

### Sending messages between peers

[`func sendMessage(Data, to: Set<Self.Peer>, completion: (TabletopSendMessageResult) -> Void)`](/documentation/TabletopKit/TabletopNetworkSessionCoordinator/sendMessage(_:to:completion:))

[`func sendMessageUnreliably(Data, to: Set<Self.Peer>, completion: (TabletopSendMessageResult) -> Void)`](/documentation/TabletopKit/TabletopNetworkSessionCoordinator/sendMessageUnreliably(_:to:completion:))



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)