protocol property

  1. @override
String? get protocol
override

The subprotocol selected by the server.

For a client socket, this is initially null. After the WebSocket connection is established the value is set to the subprotocol selected by the server. If no subprotocol is negotiated the value will remain null.

Implementation

@override
String? get protocol => _protocol;