PeerStateChange()
PeerStateChange(type: String!, peer: Peer!)
A change in peer state.
type - String!: the state change since the previous state
type
peer - Peer!: the new peer details
peer