protocol property

  1. @override
TransportProtocol get protocol

The base protocol served (http or https). Individual requests may be reported as ws/wss when they are WebSocket upgrades.

Implementation

@override
TransportProtocol get protocol =>
    _secure ? TransportProtocol.https : TransportProtocol.http;