withHubProtocol method

HubConnectionBuilder withHubProtocol(
  1. IHubProtocol protocol
)

Configures the HubConnection to use the specified Hub Protocol.

protocol: The IHubProtocol implementation to use.

Implementation

HubConnectionBuilder withHubProtocol(IHubProtocol protocol) {
  _protocol = protocol;
  return this;
}