setProtocol method

  1. @override
Future<void> setProtocol(
  1. String id
)
override

Sets the protocol for this stream

Implementation

@override
Future<void> setProtocol(String id) async {
  _protocol = id;
  // The management scope's protocol should be set by the component
  // that definitively finalizes protocol negotiation (e.g., MultistreamMuxer.handle for incoming,
  // or the initiator of an outgoing stream after successful selection).
}