Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
CallumTodd7 committed Jul 1, 2020
1 parent 83d9888 commit 9ad42b4
Show file tree
Hide file tree
Showing 9 changed files with 262 additions and 8,308 deletions.
1,231 changes: 42 additions & 1,189 deletions Documentation/MultipeerConfiguration/index.html

Large diffs are not rendered by default.

1,194 changes: 16 additions & 1,178 deletions Documentation/MultipeerConfiguration_Invitation/index.html

Large diffs are not rendered by default.

1,220 changes: 29 additions & 1,191 deletions Documentation/MultipeerConfiguration_Security/index.html

Large diffs are not rendered by default.

1,193 changes: 12 additions & 1,181 deletions Documentation/MultipeerDataSource/index.html

Large diffs are not rendered by default.

1,325 changes: 122 additions & 1,203 deletions Documentation/MultipeerTransceiver/index.html

Large diffs are not rendered by default.

1,213 changes: 29 additions & 1,184 deletions Documentation/Peer/index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Documentation/all.css

Large diffs are not rendered by default.

1,187 changes: 8 additions & 1,179 deletions Documentation/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ let transceiver = MultipeerTransceiver()
transceiver.resume()

// Configure message receivers
transceiver.receive(SomeCodableThing.self) { payload in
print("Got my thing! \(payload)")
transceiver.receive(SomeCodableThing.self) { payload, sender in
print("Got my thing from \(sender.name)! \(payload)")
}

// Broadcast message to peers
Expand All @@ -45,4 +45,4 @@ let package = Package(
],
...
)
```
```

0 comments on commit 9ad42b4

Please sign in to comment.