mafintosh / webrtc-swarm

Create a swarm of p2p connections using webrtc and a signalhub
MIT License
380 stars 60 forks source link

Document wrap function #29

Closed perguth closed 6 years ago

perguth commented 6 years ago
README.md
...
  - `maxPeers` - (optional) the maximum number of peers you wish to connect to.
  Defaults to unlimited.
 +- `wrap` - (optional) a function that can modify the WebRTC signaling data
 +before it gets send out. It's called  with `wrap(outgoingSignalingData,
 +destinationSignalhubChannel)` and must return the modified signaling data.
 +- `unwrap` - (optional) a function that can modify the WebRTC signaling data
 +before it gets processed. It's called  with `unwrap(incomingSignalingData,
 +sourceSignalhubChannel)` and must return the modified signaling data.
perguth commented 6 years ago

I guess you have some opinions regarding the textual formatting @mafintosh :)