protocol property

  1. @override
String get protocol
override

The WebSocket subprotocol negotiated with the peer.

Will be the empty string if no subprotocol was negotiated.

See RFC-6455 1.9.

Implementation

@override
String get protocol => _webSocket.protocol ?? '';