Skip to content

Commit 9ad42b4

Browse files
committed
Updated documentation
1 parent 83d9888 commit 9ad42b4

File tree

9 files changed

+262
-8308
lines changed

9 files changed

+262
-8308
lines changed

Documentation/MultipeerConfiguration/index.html

Lines changed: 42 additions & 1189 deletions
Large diffs are not rendered by default.

Documentation/MultipeerConfiguration_Invitation/index.html

Lines changed: 16 additions & 1178 deletions
Large diffs are not rendered by default.

Documentation/MultipeerConfiguration_Security/index.html

Lines changed: 29 additions & 1191 deletions
Large diffs are not rendered by default.

Documentation/MultipeerDataSource/index.html

Lines changed: 12 additions & 1181 deletions
Large diffs are not rendered by default.

Documentation/MultipeerTransceiver/index.html

Lines changed: 122 additions & 1203 deletions
Large diffs are not rendered by default.

Documentation/Peer/index.html

Lines changed: 29 additions & 1184 deletions
Large diffs are not rendered by default.

Documentation/all.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation/index.html

Lines changed: 8 additions & 1179 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ let transceiver = MultipeerTransceiver()
2222
transceiver.resume()
2323

2424
// Configure message receivers
25-
transceiver.receive(SomeCodableThing.self) { payload in
26-
print("Got my thing! \(payload)")
25+
transceiver.receive(SomeCodableThing.self) { payload, sender in
26+
print("Got my thing from \(sender.name)! \(payload)")
2727
}
2828

2929
// Broadcast message to peers
@@ -45,4 +45,4 @@ let package = Package(
4545
],
4646
...
4747
)
48-
```
48+
```

0 commit comments

Comments
 (0)