protocol property

String get protocol

Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.

MDN Reference

Implementation

_i2.String get protocol => _i4.getProperty(
      this,
      'protocol',
    );