protocol property

String? get protocol

Sets the .protocol property on the client side web socket to the value provided here, which should be one of the strings specified in the protocols parameter when requesting the web socket. This is intended for clients and servers to specify sub-protocols to use to communicate to each other.

Implementation

_i2.String? get protocol => _i3.getProperty(
      this,
      'protocol',
    );
set protocol (String? value)

Implementation

set protocol(_i2.String? value) {
  _i3.setProperty(
    this,
    'protocol',
    value ?? _i6.undefined,
  );
}