protocol property

String 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

String get protocol => _webSocket?.protocol;