acceptedProtocol property

  1. @override
String? get acceptedProtocol
override

The subprotocol the two sides agreed on in the handshake, or null when none was asked for or accepted.

Implementation

@override
String? get acceptedProtocol => protocols.firstOrNull;