Peer constructor
Creates a Peer that communicates over channel
.
Note that the peer won't begin listening to channel
until Peer.listen
is called.
Implementation
Peer(StreamChannel<String> channel)
: this.withoutJson(
jsonDocument.bind(channel).transform(respondToFormatExceptions));