protocol property

  1. @override
String protocol

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 => _protocol;