handle abstract method

Future<void> handle(
  1. P2PStream stream
)

Handle calls Negotiate to determine which protocol handler to use for an inbound stream, then invokes the protocol handler function, passing it the protocol ID and the stream. Returns an error if negotiation fails.

Implementation

Future<void> handle(P2PStream<dynamic> stream);