FakePeer
A fake of the peer service of context (fakePeer): it records each call it takes (calls), decoded as the peer's node would decode it, and answers it as answer says, a success by default. It refuses a request that names no service (Wow-Service) or no root command (Wow-Call) with 403 wow.auth.forbidden, as a peer's internal port does, and records none. Closing it stops its port.
Properties
Functions
Link copied to clipboard
Answers each call from now on as rule says: PeerAnswer.succeeded, PeerAnswer.rejected or PeerAnswer.timedOut.
Link copied to clipboard