withHubProtocol method

HubConnectionBuilder withHubProtocol(
  1. HubProtocol protocol
)

Configures the HubConnection to use the specified Hub Protocol.

Implementation

// ignore: avoid_returning_this
HubConnectionBuilder withHubProtocol(HubProtocol protocol) {
  _protocol = protocol;
  return this;
}